Components•Button Group
Components•Button Group
Button Group
A joined control group for related actions that should read as one toolbar.
Dependencies
Copy below cli
npx shadcn add @bjork-ui/primitive-button-groupHow to use
import { BjorkButtonGroup, BjorkButton } from "@/components/isaiahbjork/primitives";Props
classNamestringPass through styling hooks for the Button Group primitive without replacing the base Bjork surface.
childrenReactNodeComposable content, labels, icons, and nested content where the primitive supports them.
...propscomponent propsPass through the normal props for this primitive while the Bjork wrapper handles the visual treatment.
Segmented actions
Use for related controls that need one shared border and independent button motion.
<BjorkButtonGroup> <BjorkButton variant="ghost" size="sm">Day</BjorkButton> <BjorkButton variant="secondary" size="sm">Week</BjorkButton></BjorkButtonGroup>