On this page

Button group

Install, props and the parts Button group is built from.

Install

Run these in the app, after shadcn-vue init and the Beehexa theme (Button › Code):

npx shadcn-vue@latest add https://beehexa.design/r/button.json
npx shadcn-vue@latest add https://beehexa.design/r/button-group.json

Use

<script setup lang="ts">
import { Button } from '@/components/ui/button'
import { ButtonGroup } from '@/components/ui/button-group'
</script>

<template>
  <ButtonGroup variant="spaced" aria-label="Dialog actions" class="justify-end">
    <Button variant="outline">Cancel</Button>
    <Button>Save connection</Button>
  </ButtonGroup>
</template>

Props

Prop Values Notes
variant joined (default), spaced Joined matches the shadcn-vue ButtonGroup
aria-label string Names the whole set, such as “Date range”

Built on

A div with role="group"; the buttons inside are Beehexa Buttons.