Skip to content

Button Group

Groups multiple buttons together.

Examples

Default

vue
<script setup>
import { ButtonGroup, Button } from '@empathyds/vue'
</script>

<ButtonGroup>
  <Button>One</Button>
  <Button>Two</Button>
  <Button>Three</Button>
</ButtonGroup>

Outline (Vertical)

vue
<script setup>
import { ButtonGroup, Button } from '@empathyds/vue'
import { Plus, Minus } from 'lucide-vue-next'
</script>

<ButtonGroup orientation="vertical">
  <Button variant="outline" size="icon"><Plus /></Button>
  <Button variant="outline" size="icon"><Minus /></Button>
</ButtonGroup>

Props

ButtonGroup

PropTypeDefaultDescription
orientation'horizontal' | 'vertical''horizontal'The layout direction of the button group.
classstring-Additional CSS classes to apply.

Slots

ButtonGroup

SlotDescription
defaultThe buttons to group together.