Search the docs

Search Keyframery's docs

Keyframery

Toggle Group animation

Items dip while pressed, and a single choice glides to the item you pick.

with <Cuts />

What moves

WhenWhat you seeTimingHow
An item is pressedDips to 97%70 ms in, 150 ms outAutomatic
A single choice movesThe selection glides to it200–320 msAutomatic

A selection moved with the arrow keys stays instant.

Install

Toggle Group is shadcn's own component. With <Cuts /> in your root layout (Quick start), there's nothing else to add:

npx shadcn add toggle-group

Turn it off

Put data-cut="none" on a toggle group (or anything around it) to keep shadcn's own motion there. <Cuts responses="none" /> turns off every response across the app and keeps the cuts. With reduced motion, movement becomes a short fade or nothing.

On this page