OctantisWeb.Components.PolarisWC.SButtonGroup (octantis v0.2.0)

View Source

Displays multiple buttons in a layout.

  <.s_button_group>
    <:s_button_primary>Save</:s_button>
    <:s_button_secondary>Cancel</:s_button>
  </.s_button_group>

See

Summary

Functions

Displays multiple buttons in a layout.

Functions

s_button_group(assigns)

Displays multiple buttons in a layout.

  <.s_button_group>
    <:s_button_primary>Save</:s_button>
    <:s_button_secondary>Cancel</:s_button>
  </.s_button_group>

See

Attributes

  • accessibility_label (:string) - string

    Label for the button group that describes the content of the group for screen reader users to understand what's included.

  • gap (:string) - "base" | "none"

    The gap between elements.

  • Global attributes are accepted.

Slots

  • s_button_primary - primary-action The primary action button for the group. Accepts a single Button element with a variant of primary. Cannot be used when gap="none".

  • s_button_secondary - secondary-actions Secondary action buttons for the group. Accepts Button elements with a variant of secondary or auto.

  • inner_block