OctantisWeb.Components.Polaris.InlineStack (octantis v0.1.12)

View Source

Use to display children horizontally in a row. Based on CSS Flexbox.

Examples

  <.inline_stack gap={[xs: 500]}>
    <div>Contents</div>
    <div>Contents</div>
  </.inline_stack>

See

Summary

Functions

A helper for setting the underlaying element of a component

Use to display children horizontally in a row. Based on CSS Flexbox.

Build Style elements

Functions

as(assigns)

A helper for setting the underlaying element of a component

Attributes

  • element (:string) (required) - Must be one of "div", "span", "li", "ol", or "ul".
  • Global attributes are accepted.

Slots

  • inner_block (required)

inline_stack(assigns)

Use to display children horizontally in a row. Based on CSS Flexbox.

Examples

  <.inline_stack gap={[xs: 500]}>
    <div>Contents</div>
    <div>Contents</div>
  </.inline_stack>

See

Attributes

  • id (:string) - Defaults to nil.
  • as (:string) - HTML Element type. Defaults to "div".
  • align (:string) - Horizontal alignment of children.Must be one of "start", "center", "end", "space-around", "space-between", or "space-evenly".
  • direction (:list) - Horizontal direction in which children are laid out. Defaults to [xs: "row"].
  • block_align (:string) - Vertical alignment of children.Must be one of "start", "center", "end", "baseline", or "stretch".
  • gap (:list) - The spacing between elements. Accepts a spacing token or an object of spacing tokens for different screen sizes.Examples include [xs: "200", sm: "300", md: "400", lg: "500", xl: "600"].
  • wrap (:boolean) - Wrap stack elements to additional rows as needed on small screens. Defaults to true.
  • style (:string) - Style attribute.
  • display (:string) - Style attribute.
  • margin (:string) - Style attribute.
  • max_height (:string) - Style attribute.
  • min_height (:string) - Style attribute.
  • object_fit (:string) - Style attribute.
  • flex_grow (:string) - Style attribute.
  • justify_content (:string) - Style attribute.
  • grid_auto_rows (:string) - Style attribute.
  • grid_template_columns (:string) - Style attribute.
  • grid_template_rows (:string) - Style attribute.
  • align_items (:string) - Style attribute.
  • align_self (:string) - Style attribute.

Slots

  • inner_block (required)

style(attrs)

Build Style elements