Every Keyframery component for UI SDK, grouped by what it does. Each installs with one command and keeps UI SDK's parts and props.
Part of Keyframery, the open-source animated components for UI SDK
These are animated versions of the components in Vercel's UI SDK (@ui-sdk/react). Each one renders UI SDK's own component underneath, so keyboard, focus and screen-reader behaviour stay exactly as UI SDK ships them, and adds the motion in plain CSS. Four of them (Badge, Card, Kbd and Skeleton) have no UI SDK counterpart and are built from plain elements with the same motion. New to UI SDK? Start with what it is and how to animate it.
Install any of them by name, or all at once:
npx shadcn@latest add @keyframery/allActions 3
ButtonPressDirectionPresses spring back, the label lifts away for a spinner while pending, and an arrow nudges on hover.TogglePopGlideThe pressed surface pops in, and in a group one hover highlight glides between toggles.ToolbarGlidePressOne highlight springs between the toolbar's buttons, and presses pop back.
Forms 15
CheckboxPopDrawThe box pops as it fills and the check draws itself.Color PickerUnfoldPopThe picker unfolds from its swatch, the thumb grows while you drag and the colour cross-fades.FieldHeightDirectionLabels, hints and errors move together: an error slides in under the field and the ring turns red.File InputSpringCascadeA drop zone that wakes up when a file is over it, with new file rows arriving one after another.InputSpringFadeThe focus ring closes in around the field on a spring.LabelFadePopA label whose colour follows its control's focus and errors, with a small marker that pops in.Number InputRollPressDigits roll up or down as the value changes, and the buttons press in.OTP InputGlidePopOne ring glides from slot to slot, digits pop into place and the slots pulse when the code is complete.Password InputFadePopThe text comes into focus out of a blur when revealed, and requirements tick as they are met.RadioGlidePopOne selection ring glides to the chosen option and the dot pops in.RatingCascadePopStars fill one after another from the left, and the chosen star pops.SliderPopSpringThe thumb grows while you drag, the fill springs to new values and the digits roll.SwitchStretchPressThe thumb stretches toward the side it is moving to, then settles.TextareaSpringRollThe focus ring closes in on a spring and the character count rolls.Token InputPopPressTokens pop into the field as you add them, and the remove buttons press in.
Menus 8
AutocompleteUnfoldCascadeSuggestions cascade in under the field and one highlight glides between them as you type.ComboboxUnfoldCascadeThe list unfolds from the field, rows cascade in and one highlight glides between options.Context MenuUnfoldCascadeA right-click menu that unfolds from the exact point you pressed, with the same gliding highlight as Menu.ListboxGlidePopOne highlight glides between options and checks pop in as you choose.MenuUnfoldCascadeThe sheet unfolds from its button, rows cascade in and one highlight glides between items.MenubarGlideUnfoldA highlight glides along the bar from one menu to the next, and each menu unfolds from its title.SelectUnfoldCascadeThe list unfolds from the field, one highlight glides between options and the chosen value rises in.Trigger MenuUnfoldCascadeTyping @ or / opens a menu at the cursor, with rows cascading in and a gliding highlight.
Overlays 8
Alert DialogUnfoldPopA confirmation that rises out of a blur, with the warning icon popping in before the rest.CommandCascadeGlideA command palette whose rows cascade in, with one highlight gliding between results and pages sliding sideways.DialogUnfoldCascadeRises from below out of a blur, then its title, fields and buttons arrive one after another.DrawerSpringCascadeSlides in from any edge on a spring; its grip stretches while you drag it.Hover CardUnfoldCascadeA preview card that unfolds from the link you are pointing at.PopoverUnfoldCascadeUnfolds from the button that opened it, then its contents cascade in.ToastSpringDrawToasts slide in and stack, the ones behind shrink back, and they spread out when you hover.TooltipUnfoldFadePops out of its button, and switches instantly as you move to the next one.
Navigation 6
Navigation MenuStretchSpringThe marker stretches between items and the panel resizes on a spring to fit each menu.PaginationGlideRollOne raised key glides between page numbers and the range count rolls.Segmented ControlStretchFadeThe selected key stretches across toward the new option, then closes up.SidebarGlideHeightThe current page's key glides between items, groups fold away on a spring, and the sidebar narrows to an icon rail.TabsStretchFadeThe key stretches across the list to the tab you pick, and the panel slides in from that side.TreeGlideHeightBranches open on a spring with their rows falling in, and the selected row's key glides.
Disclosure 3
AccordionHeightCascadePanels open to their real height on a spring while their contents rise in one after another.CarouselDirectionStretchSlides travel on a spring and the active dot stretches into a bar.CollapsibleHeightCascadeContent opens to its real height on a spring and its rows fall in one after another.
Display 6
AvatarFadeSpringPhotos fade up out of a blur once loaded, and stacked avatars spring apart on hover.BadgePopRollBadges pop in, and a count rolls its digits up or down when the number changes.KbdPressCascadeKeyboard keys that sink and spring back when pressed, one after another for a combination.MeterSpringRollThe bar springs to its value, changes colour at thresholds and the digits roll.ProgressSpringRollThe bar fills on a spring, the percentage rolls and it turns green when complete.TimelineCascadeDrawEvents rise in one after another, a finished step's check draws itself and the rail fills.
Feedback 1
Dates 4
CalendarGlideDirectionOne key glides from the old day to the new one, and weeks slide in from the side you turned to.Date InputGlideOne highlight glides between day, month and year as you move through the segments.Date PickerUnfoldGlideA field that opens a calendar unfolding from it, with the selected day gliding to its new place.Time InputGlideOne highlight glides between hours, minutes and AM/PM as you move.
Layout 4
CardCascadeSpringCard parts cascade in, interactive cards lift on hover, and an optional light follows the pointer.ResizableSpringStretchPanels glide to a new size on a spring, and the handle's grip stretches while you drag.Scroll AreaFadeSpringThe scrollbar fades in and its thumb springs thicker when you reach for it.SeparatorDrawFadeThe line draws itself from the centre outward, then its label fades in.