Skip to Content
Liquid Glass UI
Components

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.right rotates 90° downward when expanded using the Apple 27 curve cubic-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 glass Card to prevent glass-on-glass stacking.

Liquid Glass Accordion

apple-liquid-ui/preview/accordion-liquid-hero
MacBook · 16:10

Installation (Shadcn Registry)

npx shadcn@latest add @apple-liquid/accordion

Multiple Expanded Items

apple-liquid-ui/preview/accordion-multiple
MacBook · 16:10

Nested Inside a Glass Card

Automatically switches to a plain list inside a glass Card to avoid glass-on-glass stacking:

apple-liquid-ui/preview/accordion-plain
MacBook · 16:10

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

PropTypeDefaultDescription
glassbooleantrueLiquid 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-detectedManually override the hosting surface context
multiplebooleanfalseAllow multiple items to be expanded simultaneously
value / defaultValueany[]—Controlled / uncontrolled expanded item values
onValueChange(value: any[]) => void—Callback fired when expanded items change
disabledbooleanfalseDisable the entire accordion or an individual AccordionItem

On this page