https://framer.com/m/Accordion-FbDf.js#AccordionX

Io / UI Basics / AccordionX

AccordionX

AccordionX collapses a list of sections down to their titles and opens one at a time. Trigger and panel typography come from the theme type steps, every surface and rule from the colour tokens. The rows below hold this system’s own component catalogue.

Interactivesingle expand8 type steps9 colour slots

Examples

Live specimens for every control the component exposes.

Default

One row open at a time. The catalogue entries below are the real one-line purposes from the component registry.

Hover or focus tooltip with an optional icon. Reach for it when the hint is a short line of text.

Collapsible

collapsible decides whether the open row can be closed, or whether one must always stay open.

Hover or focus tooltip with an optional icon. Reach for it when the hint is a short line of text.

collapsible true — every row can close

Hover or focus tooltip with an optional icon. Reach for it when the hint is a short line of text.

collapsible false — one stays open

Type scale

triggerFontSize and contentFontSize pick steps from the theme scale, so an accordion sits correctly inside any block of copy.

Hover or focus tooltip with an optional icon. Reach for it when the hint is a short line of text.

trigger Body · content Callout

Hover or focus tooltip with an optional icon. Reach for it when the hint is a short line of text.

trigger Detail · content Tiny

Weight

triggerFontWeight maps onto the theme weight tokens — enough to separate the title from its answer without changing size.

Hover or focus tooltip with an optional icon. Reach for it when the hint is a short line of text.

regular

Hover or focus tooltip with an optional icon. Reach for it when the hint is a short line of text.

semibold

Hover or focus tooltip with an optional icon. Reach for it when the hint is a short line of text.

bold

Radius

radius rounds the container. Keep it in step with the cards and inputs around it.

Hover or focus tooltip with an optional icon. Reach for it when the hint is a short line of text.

radius 0

Hover or focus tooltip with an optional icon. Reach for it when the hint is a short line of text.

radius 8

Hover or focus tooltip with an optional icon. Reach for it when the hint is a short line of text.

radius 16

Colour and the theme

AccordionX exposes nine colour slots — root, trigger, trigger hover, trigger text, divider, focus ring, panel, panel text and chevron. Inside a themed page they are inert: ThemeLeaderPro supplies the colours and the props act only as fallbacks for un-themed contexts. Both specimens below carry different slot values and render identically, which is the point.

Hover or focus tooltip with an optional icon. Reach for it when the hint is a short line of text.

slots set to the panel tokens

Props

The controls exposed on the instance panel.

PropTypeBehaviour
itemsarrayEach row: a unique value, the trigger title and the panel content.
defaultItemstringThe item value expanded on first render.
collapsiblebooleanWhether all rows may be closed at once, or one must stay open.
triggerFontSizeenumTheme type step for the trigger, H1 down to Tiny.
triggerFontWeightenumlight · regular · medium · semibold · bold for the trigger.
contentFontSizeenumTheme type step for the panel body.
contentFontWeightenumWeight for the panel body.
radiusnumberCorner radius of the accordion container.
rootBGcolorBackground of the whole accordion.
triggerBGcolorBackground of each trigger row.
triggerHovercolorTrigger background while hovered.
triggerTextcolorTrigger label colour.
dividercolorRule between rows.
focusBordercolorFocus ring colour for keyboard users.
contentBGcolorBackground of the expanded panel.
contentTextcolorPanel body colour.
iconcolorChevron colour.
PropTypeBehaviour
itemsarrayEach row: a unique value, the trigger title and the panel content.
defaultItemstringThe item value expanded on first render.
collapsiblebooleanWhether all rows may be closed at once, or one must stay open.
triggerFontSizeenumTheme type step for the trigger, H1 down to Tiny.
triggerFontWeightenumlight · regular · medium · semibold · bold for the trigger.
contentFontSizeenumTheme type step for the panel body.
contentFontWeightenumWeight for the panel body.
radiusnumberCorner radius of the accordion container.
rootBGcolorBackground of the whole accordion.
triggerBGcolorBackground of each trigger row.
triggerHovercolorTrigger background while hovered.
triggerTextcolorTrigger label colour.
dividercolorRule between rows.
focusBordercolorFocus ring colour for keyboard users.
contentBGcolorBackground of the expanded panel.
contentTextcolorPanel body colour.
iconcolorChevron colour.

Usage

Guidance carried over from the component definition.

Reach for AccordionX

Sections collapse to their titles and only one opens at a time.

Trigger and panel type must track the theme scale.

You want the WAI-ARIA disclosure behaviour without building it.

Rows are data — a value, a title and a body per entry.

Reach for something else

Several rows must be open at once.

You need nested or multi-level disclosure.

The panel holds a hover-only summary — use HoverCardX.

Io — UI Basics

Every accordion above is a live AccordionX instance over this system’s own component catalogue. Colour, type and radius resolve from the project theme tokens.

io

An experiment in what a design system becomes when AI can consume it.

© 2026 io

Contact me

Create a free website with Framer, the website builder loved by startups, designers and agencies.