A component for grouping related buttons with horizontal or vertical orientation.
npx shadcn@latest add @preskok/button-groupimport { Button } from "@/components/ui/preskok-ui/button"
import { ButtonGroup } from "@/components/ui/preskok-ui/button-group"
export function ButtonGroupDemo() {
return (
<ButtonGroup>
<Button intent="secondary">Down</Button>
<Button intent="secondary">Up</Button>
</ButtonGroup>
)
}| Prop | Type | Default | Description |
|---|---|---|---|
orientation | "horizontal" | "vertical" | "horizontal" | Direction of button alignment |
className | string | - | Additional CSS classes |
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | - | Additional CSS classes |