Components
Disclosure Toggle
The ▸ triangle of toggle blocks and tree rows: rotates down when open.
Meeting notes
Nested content shows when the toggle is open.
Usage
Use it to:
- collapse nested content in trees and toggle blocks
Don’t use it to:
- whole collapsible sections with a header (use Accordion)
Installation
Install the package (React 19):
terminal
terminal
terminal
Import the styles once, in your app entry or root layout:
/src/main.tsx
Use it anywhere inside your app's <Theme> (see Installation):
/src/DisclosureToggleExample.tsx
Examples
Size
Dark theme
API Reference
DisclosureToggle
A <button>; supports all of its props. Adds:
| Prop | Type | Default |
|---|---|---|
open | boolean | false |
onOpenChange | (open: boolean) => void | |
size | "sm""md" | "md" |
Accessibility
- A button with
aria-expandedand the name “Open” / “Close”;Enter/Spacetoggle it. Pointaria-controlsat the content it shows. - 24×24 on touch screens.
© 2026 Motion. Internal documentation.