View Source Phoenix.UI.Components.ButtonGroup (Phoenix UI v0.1.9)
Provides a button_group component.
Link to this section Summary
Functions
Renders a button group
Link to this section Functions
@spec button_group(Phoenix.LiveView.Socket.assigns()) :: Phoenix.LiveView.Rendered.t()
Renders a button group
examples
Examples
```heex
<.button_group>
<:button>
One
</:button>
<:button>
Two
</:button>
...
</.button>
```
attributes
Attributes
color(:string) - Defaults to"blue".element(:string) - Defaults to"div".orientation(:string) - Defaults to"horizontal".size(:string) - Defaults to"md".square(:boolean) - Defaults tofalse.variant(:string) - Defaults to"contained".
slots
Slots
button