View Source Shino.UI.Attrs (shino v0.2.0-alpha.1)

Provides attrs related components.

Examples

<Attrs.list>
  <:item name="Subtotal">$299.00</:item>
  <:item name="Shipping">$5.00</:item>
  <:item name="Tax">$25.00</:item>
</Attrs.list>

Or:

<Attrs.root>
  <Attrs.item>
    <Attrs.name>Subtotal</Attrs.name>
    <Attrs.value>$299.00</Attrs.value>
  </Attrs.item>
  <Attrs.item>
    <Attrs.name>Shipping</Attrs.name>
    <Attrs.value>$5.00</Attrs.value>
  </Attrs.item>
  <Attrs.item>
    <Attrs.name>Tax</Attrs.name>
    <Attrs.value>$25.00</Attrs.value>
  </Attrs.item>
</Attrs.root>

Summary

Functions

Renders an attr item.

Rendrs an attr list.

Renders an attr name.

The root contains all the parts of an attr list.

Renders an attr value.

Functions

Renders an attr item.

Attributes

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

Slots

  • inner_block (required)

Rendrs an attr list.

It's a simplified version of the lits built by <Attrs.root /> and its associated components.

Attributes

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

Slots

  • item (required) - Accepts attributes:
    • name (:string) (required)

Renders an attr name.

Attributes

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

Slots

  • inner_block (required)

The root contains all the parts of an attr list.

Attributes

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

Slots

  • inner_block (required)

Renders an attr value.

Attributes

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

Slots

  • inner_block (required)