ComponentReactregistry:ui1 dependency
DisclosureToggle
disclosure-toggle
Caret-and-label text button that expands and collapses an adjacent region, with aria-expanded and the touch and focus floors built in.
Notes from the author
Use DisclosureToggle wherever content reveals inline: a height-capped list that can drop its cap, a 'more options' tail, an inline detail panel. It is controlled - pass expanded and onExpandedChange - and takes translated expandLabel/collapseLabel. Give the revealed region an id and pass it as controls so assistive tech can follow the relationship.
@whiskeyjack