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.1.0 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-9.0.0 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-8.3.0.alpha.select.pre.margin app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-8.3.0 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-8.2.1.pre.alpha5 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-8.2.1.pre.alpha4 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-8.2.1.alpha.iconacc app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-8.2.1.pre.alpha3 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-8.2.1.pre.alpha2 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-8.3.0.deps2 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-8.3.0.pre.alpha1 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-8.2.1.pre.alpha1 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-8.2.1 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-8.1.3 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-8.4.0.alpha.dependencies.2 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-8.4.0.alpha.dependencies.1 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-8.2.0.pre.alpha4 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-8.2.0.pre.alpha3 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-8.2.0 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb
playbook_ui-8.1.2 app/pb_kits/playbook/pb_flex/docs/_flex_item.html.erb