Components
ButtonGroup
Merges multiple buttons into a shared Apple 27 toolbar Liquid Glass capsule by default, or joins them into a pill-ended Bordered segmented row when glass={false}.
Fully compatible with the standard shadcn/ui JSX API (ButtonGroup / ButtonGroupText / ButtonGroupSeparator, supporting orientation):
- Segmented pill joining: Outer buttons keep full pill radii horizontally while inner edges meet cleanly; vertically, outer buttons use 18px ↔ 12px radii.
- Text prefix:
ButtonGroupTextrenders a neutral Bordered capsule. - Shared glass capsule (default): Matches iOS 27
Toolbars / Buttonsand macOS 27 toolbar groups—the entire group shares oneRegular - SmallLiquid Glass capsule with 4px (iOS) / 2px (macOS) inner inset matching single glass button height. Child buttons automatically switch to Over-Glass (best paired withvariant="ghost"). The capsule automatically disables when placed on an existing glass surface.
Shared Glass Capsule
<ButtonGroup glass aria-label="Document actions">
<Button size="icon" variant="ghost" aria-label="Share">
<ShareIcon />
</Button>
<Button size="icon" variant="ghost" aria-label="Edit">
<PencilIcon />
</Button>
</ButtonGroup>Installation (Shadcn Registry)
npx shadcn@latest add @apple-liquid/button-groupUsage
import { Button } from '@/components/ui/button';
import { ButtonGroup } from '@/components/ui/button-group';
export function Example() {
return (
<ButtonGroup glass={false}>
<Button variant="secondary">Archive</Button>
<Button variant="secondary">Share</Button>
</ButtonGroup>
);
}Props
ButtonGroup
| Prop | Type | Default | Description |
|---|---|---|---|
orientation | 'horizontal' | 'vertical' | 'horizontal' | Layout direction |
glass | boolean | true | Merges into a single shared Liquid Glass toolbar capsule with Over-Glass child buttons; false joins buttons into a Bordered segmented row (child buttons inherit opaque rendering unless overridden). Automatically disabled on glass surfaces |
Button
Responsive Liquid Glass button built to Apple macOS 27 and iOS 27 guidelines, powered by @liqui-design/glass real optical refraction, Base UI, and Motion spring physics.
Calendar
Responsive Apple Liquid Glass calendar and date picker featuring circular Apple Blue selection pills, soft continuous range bands, month/year dropdown jumps, and seamless Popover / Drawer composition.