Dev Design Library

Accordion

Sections that open in place: row headers with a chevron; the panel grows to its content on the settle spring while the shared chevron morphs from right to down on settle, and leaves on release.

Accordion preview
Library
Metal UI
Framework
React + SwiftUI
Type
ui
License
MIT
Dependencies
@base-ui/react@^1.8.0
Files
  • packages/metalui/src/components/accordion/accordion.tsx
  • packages/metalui/src/icons/MorphIcon.tsx
  • packages/metalui/src/icons/morph.ts
  • packages/metalui/src/icons/morph.generated.ts
  • packages/metalui/src/motion/reduced.ts
  • packages/metalui/src/motion/springs.generated.ts
Source
https://github.com/vijayksingh/metalui

Categories

More from Metal UI