OctantisWeb.Components.PolarisWC.SButtonGroup (octantis v0.2.0)
View SourceDisplays 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
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) - stringLabel 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 avariantofprimary. Cannot be used when gap="none".s_button_secondary- secondary-actions Secondary action buttons for the group. Accepts Button elements with avariantofsecondaryorauto.inner_block