Accordion
Apple 27 expandable list with hairline row dividers, a trailing chevron that rotates 90° when open, and spring height animation. Adapts between 44px mobile touch rows and 32px desktop rows, and becomes an Inset Grouped section inside a glass Card.
Fully compatible with the standard shadcn/ui JSX API (Accordion / AccordionItem / AccordionTrigger / AccordionContent, supporting multiple and value / defaultValue):
- Disclosure indicator: A single trailing
chevron.rightrotates 90° downward when expanded using the Apple 27 curvecubic-bezier(.32,.72,0,1). - Responsive row height & type: 44px touch rows and 17px body text (iOS
Body) on mobile ↔ 32px compact rows and 13px text on desktop. - Height animation: Smoothly animates height and opacity as panels open and close; switches instantly when Reduced Motion is enabled.
- Default Liquid Glass: Renders as an Inset Grouped Liquid Glass panel that responds to the global glass tint level; pass
glass={false}for a plain unbacked list. Automatically switches to a plain list when nested inside a glassCardto prevent glass-on-glass stacking.
Liquid Glass Accordion
Installation (Shadcn Registry)
npx shadcn@latest add @apple-liquid/accordionMultiple Expanded Items
Nested Inside a Glass Card
Automatically switches to a plain list inside a glass Card to avoid glass-on-glass stacking:
Usage
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from '@/components/ui/accordion';
export function Example() {
return (
<Accordion defaultValue={['a']}>
<AccordionItem value="a">
<AccordionTrigger>What is Liquid Glass?</AccordionTrigger>
<AccordionContent>The new dynamic material system introduced in Apple 27.</AccordionContent>
</AccordionItem>
</Accordion>
);
}Props API
| Prop | Type | Default | Description |
|---|---|---|---|
glass | boolean | true | Liquid Glass material reacting to the global glass tint; false renders the 100% opaque surface equivalent (unaffected by tint). Automatically switches to Over-Glass when placed on a glass surface |
surface | 'default' | 'over-glass' | Auto-detected | Manually override the hosting surface context |
multiple | boolean | false | Allow multiple items to be expanded simultaneously |
value / defaultValue | any[] | — | Controlled / uncontrolled expanded item values |
onValueChange | (value: any[]) => void | — | Callback fired when expanded items change |
disabled | boolean | false | Disable the entire accordion or an individual AccordionItem |
Components
Responsive Liquid Glass component library built on Apple macOS 27 and iOS 27 guidelines, adapting automatically between desktop and mobile with shadcn Registry installation support.
Alert
Apple 27 inline alert banner with grouped surface, 0.5px hairline stroke, accent icon, 18px mobile ↔ 12px desktop corner radius, and an Apple Red tinted destructive variant.