Column Accordion
Column Accordion
A disclosure list on the vertical axis. Each item is a collapsed title column; opening one widens it sideways, unfolding its detail as new columns beside the title along the reading direction.
$ npx verticallyworks add column-accordionA horizontal accordion grows its panel downward, adding row height. On the vertical axis, downward is the reading length of the title column · growing it there breaks the line. So where does the panel go?
Default
A list of collapsed title columns. Opening one widens it sideways · the detail unfolds as new columns beside the title, along the reading direction, so the title column’s length never breaks. One item open at a time.
Source
The exact file npx verticallyworks add column-accordion copies into your project · yours to edit. Styling comes entirely from the design tokens.
Guidance
- Unfold the detail sideways along the reading direction (leftward), beside the title · not below it
- Keep one panel open at a time so the list's width stays predictable
- Point the disclosure chevron toward the unfold and rotate it on open
- Give each header a 44px+ hit target and animate width, never height
- Grow the panel downward · that stretches the title column and breaks its line
- Rotate a finished horizontal accordion 90° · the chevron, focus order, and motion all end up wrong
- Open every item at once · the list can widen past the viewport with nothing to anchor to