Component libraryButton group
Components/Essentials

Button group

Pro

A labelled cluster of native button actions with shared separator geometry, horizontal or vertical orientation, and narrow wrapping.

npx shadcn@latest add @tidal-pro/button-group
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/button-group

Import components/ui/tidal.css, components/ui/button-group.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

label names the native group. actions is an ordered list with unique IDs, ReactNode labels, optional decorative icons, default/strong emphasis, disabled state, native button props and individual button refs. Enabled actions use ordinary native Tab behavior unless a consumer explicitly supplies native tabIndex. The native action type defaults to button; form/type/id/data/ARIA attributes and enabled aria-disabled=false are preserved, while action, native, ARIA or group disabled resolves to actual disabled behavior. orientation controls horizontal or vertical geometry. wrap allows narrow layout reflow; a non-wrapping horizontal group uses native inline scrolling so trailing actions remain reachable and focused buttons reveal normally. The forwarded ref and remaining native div attributes target the labelled root; role and accessible label are component-owned. Consumers own every action result, form submission, visibility, navigation, data and focus after an accepted action. Roving arrow navigation belongs to the separate Toolbar component and is intentionally absent here.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.