View Source Phoenix.UI.Components.ButtonGroup (Phoenix UI v0.1.5)

Provides a button_group component.

Link to this section Summary

Functions

Renders a button group

Link to this section Functions

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 to false.
  • variant (:string) - Defaults to "contained".

slots

Slots

  • button