Summary

Functions

Consumed by Checkbox and Radio button. Undocumented by Shopify.

Functions

build_class(arg)

choice(assigns)

Consumed by Checkbox and Radio button. Undocumented by Shopify.

See

Attributes

  • id (:string) - A unique identifier for the choice.
  • label (:string) - Label for the choice.
  • disabled (:boolean) - Whether the associated form control is disabled.
  • label_hidden (:boolean) - Visually hide the label.
  • label_class (:string) - Added to the label element. Defaults to nil.
  • fill (:list) - Grow to fill the space. Equivalent to width: 100%; height: 100%. Defaults to nil.
  • error (:string) - Display an error message.
  • help_text (:string) - Additional text to aide in use. Will add a wrapping <div>.
  • tone (:string) - Indicates the tone of the choice. Defaults to nil.

Slots

  • inner_block - Content to display inside the choice.

class(attrs)