Skip to content

Form & Field

Accordion

Expands and collapses items without JavaScript, and can keep just one open at a time.

Live, interactive React component · light themeResponsive

About the Form & Field Accordion

Native <details> items as rows under hairlines: works without JavaScript, and closed text stays findable with the browser's find. A thin plus at the end of each row turns into a cross when the row opens; there are no boxes. exclusive keeps one item open (native details name). The height animates where ::details-content is supported.

It is part of Form & Field: warm paper, ink pills, one lime. The style’s 91 pieces share one set of tokens, type and motion, in a light and a dark theme, so whatever you take from it fits together.

To put it in your project, copy the prompt into Claude Code, OpenAI Codex or Cursor, or add it by hand. The documentation walks through both.

The same piece, drawn for a different look. Open one to compare it live.

Aeris Accordion

Expands and collapses items without JavaScript, and can keep just one open at a time.

Bavaria Accordion

Expands and collapses items without JavaScript, and can keep just one open at a time.

Glass Meridian Accordion

Expands and collapses items without JavaScript, and can keep just one open at a time.

Grove Accordion

Expands and collapses items without JavaScript, and can keep just one open at a time.

Neo-Brutal Accordion

Expands and collapses items without JavaScript, and can keep just one open at a time.

Noir Aurora Accordion

Expands and collapses items without JavaScript, and can keep just one open at a time.

Soft Bento Accordion

Expands and collapses items without JavaScript, and can keep just one open at a time.

Swiss Tech Mono Accordion

Expands and collapses items without JavaScript, and can keep just one open at a time.