Button Group

Renders a button group component

Attribute Type Documentation Default Value
Required id * :string
as :string "button"
wrapper :string "stacking_cluster"
space :string "sm"
justify :string "start"
rest :global
Required button * :slot
Show slot attributes Hide slot attributes
disabled :boolean
selected :boolean
on_click %JS{}
aria_label :string
<:button on_click={%JS{}} selected={true}>First</:button>
<:button on_click={%JS{}}>Second</:button>
<:button on_click={%JS{}}>Third</:button>
<:button on_click={%JS{}}>Fourth</:button>