A shadcn-style button group component built with Ark UI primitives.

Installation

npx shadcn@latest add @ark-cn/button-group

Usage

import * as ButtonGroup from "@/components/ui/button-group"

Read exported parts in src/components/ui/button-group.tsx and compose the primitive according to the Ark UI pattern for this component.

Examples

With Default Buttons

With Input

Small Size

Large Size

With Disabled Button

With Start Labeled Text

View

With End Text

With End Text

Vertical

Nested Groups

With Popup

With Input Group

With Menu