Code
In context
Install · Free Web Component
One file, no dependencies. Aurora preset, every other option included. Host it yourself so your visitors never load anything from our servers.
The shadcn command adds a typed React wrapper for you. Using the file directly? Custom elements work in React as-is; for type checking add:
Pro · React + TypeScript Pro
One payment of $4.99, yours forever. Use it in unlimited personal and commercial projects; no resale.
- React component with TypeScript types and the full source — items take any React content
- Sunset, Mint and Mono tints, plus custom tints from Brand Fit
- The vanilla Web Component with every tint, a demo page, README and license
Attributes & props
| Name | Type | Default | Description |
|---|---|---|---|
| <section title="…"> | children | — | One child per row: its title attribute is the heading, its content the answer (any HTML). Add open to start it unfolded. |
| multiple | boolean | off | Several rows may be open at once. By default opening one closes the others. |
| width | number (px) | CSS width | 420 | Slab width; "100%" fills the parent. |
| size | number (px) | 16 | Heading size; the padding, the bead and the answer text scale with it. |
| radius | number (px) | 22 | Corner radius of the slab. |
| heading-level | 2..6 | 3 | Which heading tag the row titles use, to fit your page outline. |
| theme | 'light' | 'dark' | 'light' | White porcelain or dark. |
| sound | boolean | off | A porcelain tap, higher when a row opens. Also on for everything inside an element with data-ui-sound="on". |
| tint Pro | 'aurora' | 'sunset' | 'mint' | 'mono' | object | 'aurora' | Colours of the bead glow and the seam, or a custom tint. Free build ships Aurora only. |
Each row is a real heading with a button inside, wired to its panel with aria-expanded and aria-controls; closed panels are inert, so Tab skips what you cannot see. Up / Down, Home and End move between rows. It fires toggle with detail.index and detail.open, and has open(i), close(i) and toggle(i) methods. The unfold is a CSS grid transition — no height measuring, no layout thrash. Reduced motion opens rows at once.
More components
- Tide Slide
- Pearl Code
- Pearl Dial
- Nova Rating
- Pearl Check
- Pearl Input
- Pearl Select
- Pearl Calendar
- Pearl Chip
- Glass Dock
- Pearl Slider
- Pearl Segmented
- Aurora Ring
- Glass Toggle
- Pearl Loader
- Ink Sphere
- Frost Card
- Holo Card
- Stream Text
- Lens Compare
- Glass Toast
- Glass Sheet
- Glass Tip
- Glass Nav
- Pearl Tabs
- Glass Command
- Halo Avatar
- Pearl Steps
- Pearl Skeleton
- Pearl Table
- Pearl Empty
- Roll Counter
- Glass Marquee
- Reveal Text
- Mesh Gradient
- Silk Waves
- Dot Field
- Plasma Orb
- Voice Wave
- Plush Buddy
- Gummy Agent
- Glass Tabbar
- Glass Menu
- Pearl Pricing
- Glass Bento
- Quote Wall
- Glass Cta
- Magnet Button
- Beam Border
- Spotlight Card
- Scratch Reveal
- Glass Sidebar
- Pearl Pagination
- Pearl Breadcrumb
- Liquid Metal Button
- Mercury Orb
- Prompt Input
- Voice Orb
- Firefly Button
- Pearl Button
- Alien Face
- Prism Button
- Liquid Carousel
- Orbit Carousel
- Deck Carousel