accordion
a set of disclosures between full-width rules. each row opens its own panel, turns one chevron and keeps keyboard focus inside the trigger.
bunx --bun shadcn@latest add @mk/accordionexample
one answer opens at a time. use the arrow keys to move between questions, then enter or space to open one.
behavior
allow several panels to stay open together. each trigger still names and controls its own answer.
states
closed and open share the same ruled row. hover underlines the words, focus stays inside, and disabled removes the action.
closed
48 px row between rules
open
chevron turns; panel opens
hover
underlined trigger
focus
ring inside the full row
disabled
disabled label and trigger
closed
48 px row between rules
open
chevron turns; panel opens
hover
underlined trigger
focus
ring inside the full row
disabled
disabled label and trigger