Y2K UI

Button Group

Connects buttons together with seamless shared borders.

button-group-demo.app

Installation

terminal.sh
npx y2kui@latest add button-group

Usage

import { ButtonGroup } from "@/components/ui/button-group"
import { Button } from "@/components/ui/button"

<ButtonGroup>
  <Button>Left</Button>
  <Button>Center</Button>
  <Button>Right</Button>
</ButtonGroup>

Props

PropTypeDefaultDescription
orientation'horizontal' | 'vertical''horizontal'Layout direction.
classNamestringAdditional Tailwind classes.
childrenReactNodeButton components.

On this page