View Source Tremorx.Components.Layout (tremorx v0.1.1)

Flex, Grid, Col, Divider and Card

Summary

Functions

Renders a card

Renders a col

Attributes

  • class (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block

Renders a flex

Renders a grid

Functions

Renders a card

Attributes

  • decoration (:string) - Defaults to "none".
  • decoration_color (:string) - Defaults to nil.
  • class (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block

Renders a col

Attributes

  • num_col_span (:string) - Defaults to "1".
  • num_col_span_sm (:string) - Defaults to nil.
  • num_col_span_md (:string) - Defaults to nil.
  • num_col_span_lg (:string) - Defaults to nil.
  • class (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block

Attributes

  • class (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block

Renders a flex

Attributes

  • flex_direction (:string) - Defaults to "row".
  • justify_content (:string) - Defaults to "between".
  • align_items (:string) - Defaults to "center".
  • class (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block

Renders a grid

Attributes

  • num_items (:string) - Defaults to "1".
  • num_items_sm (:string) - Defaults to nil.
  • num_items_md (:string) - Defaults to nil.
  • num_items_lg (:string) - Defaults to nil.
  • class (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block