Sha256: be4fef2655bcbdfcf1ffd4254d764e6fe6d27bfdb7e5a02d8b495c7aef5acbcd

Contents?: true

Size: 1.78 KB

Versions: 121

Compression:

Stored size: 1.78 KB

Contents

<%= pb_rails("title", props: {size: 4, text: "Grow"}) %>
<br/>
<div class="flex-doc-example">
  <%= pb_rails("flex",props: { gap:"sm" }) do %>
    <%= pb_rails("flex/flex_item", props: { grow: true }) do %>I'm growing<% end %>
    <%= pb_rails("flex/flex_item") do %>1<% end %>
    <%= pb_rails("flex/flex_item") do %>2<% end %>
    <%= pb_rails("flex/flex_item") do %>3<% end %>
  <% end %>
</div>

<br/><br/>

<%= pb_rails("title", props: {size: 4, text: "Shrink"}) %>
<br/>
<div class="flex-doc-example">
  <%= pb_rails("flex", props: { gap: "sm"}) do %>
    <%= pb_rails("flex/flex_item", props: {shrink: true}) do %> I'm shrinking<% end %>
    <%= pb_rails("flex/flex_item", props: {flex: "1"}) do %>1<% end %>
    <%= pb_rails("flex/flex_item", props: {flex: "1"}) do %>2<% end %>
    <%= pb_rails("flex/flex_item", props: {flex: "1"}) do %>3<% end %>
  <% end %>
</div>

<br/><br/>

<%= pb_rails("title", props: {size: 4, text: "Fixed Size"}) %>
<br/>
<div class="flex-doc-example">
  <%= pb_rails("flex", props: { gap: "sm"}) do %>
    <%= pb_rails("flex/flex_item", props: {fixed_size: "250px"}) do %> I'm 250px<% end %>
    <%= pb_rails("flex/flex_item", props: {flex: "1"}) do %>1<% end %>
    <%= pb_rails("flex/flex_item", props: {flex: "1"}) do %>2<% end %>
    <%= pb_rails("flex/flex_item", props: {flex: "1"}) do %>3<% end %>
  <% end %>
</div>

<br/><br/>

<%= pb_rails("title", props: {size: 4, text: "Flex"}) %>
<br/>
<div class="flex-doc-example">
  <%= pb_rails("flex", props: { gap: "sm"}) do %>
    <%= pb_rails("flex/flex_item", props: {flex: "1"}) do %>1<% end %>
    <%= pb_rails("flex/flex_item", props: {flex: "3"}) do %>2<% end %>
    <%= pb_rails("flex/flex_item", props: {flex: "1"}) do %>3<% end %>
    <%= pb_rails("flex/flex_item", props: {flex: "2"}) do %>4<% end %>
  <% end %>
</div>

Version data entries

121 entries across 121 versions & 1 rubygems

Version Path
playbook_ui-9.15.0.pre.decouple.website1 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-9.14.1.alpha.radio.alignment app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-9.14.1.alpha.highcharts9 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-9.14.1 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-9.13.0 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-9.12.0 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-9.12.0.pre.text.addon app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-9.11.0 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-9.10.0 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-9.10.0.pre.date.time.stacked.1 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-9.10.0.pre.alpha2 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-9.10.0.pre.alpha1 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-9.9.0.alpha.inline1 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-9.9.0 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-9.8.0 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-9.7.0.pre.alphawidth1 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-9.7.0.pre.alpha.a11y.btn app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-9.7.0 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-9.6.1 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-9.6.1.pre.deps1 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb