Skip to main content
Package: motion.

Try it

Switch between All, Guides, and Reference. The selected background moves between buttons. Expand a title to see the surrounding cards move into their new positions.

3 files shown.

Code

motion-layout.tsx

Keyboard and reduced motion

Each filter and title is a button. Use Tab to move between them and Enter or Space to select or expand. The active filter uses aria-pressed; filenames announce their expanded state.

Key props

Motion documentation