Transitions
Animate state changes in your components, from labels and selections to lists and pages.
Use these transitions for changing labels, selections, lists and views. You supply the appearance and accessible behavior. Each transition supports interruption, follows Speed and has a reduced-motion state. They also power @youj/react.
A highlight that glides to the selected item of any group, found from the attributes the items already carry.
Where they're used
| Transition | For example, in @youj/react |
|---|---|
| Sliding Indicator | Tabs, Toggle Group, Dropdown Menu, Command, Pagination, Navigation Menu, Sidebar |
| Morph Label | Async Button, through Async Feedback |
| Collapse | Alert dismissal, Field errors, Data tables, Tag Input, Timeline, Tree View |
| Content Swap | Data tables loading, Stat Card |
| Presence List | Data tables rows, Notification Center, Prompt Input |
For Base UI's own Collapsible, Accordion, popovers and dialogs, use the CSS Overlay presets instead. Composing components builds a full component from these.