15 rebuilds
skip the tree
system / motion / radix15 rebuilds

Radix

The Radix examples of the Motion library, rebuilt in Composite: the same trigger, in steps, with the system's own parts.

the category

motion/_rebuilds
rebuilds
15
from motion+
15
easing
steps() only

motion / radix / radix: accordion

after a motion+ example
open a section: Tab moves, Enter or Space opens
margin_rebuilds/​radix/​radix-accordion.tsx
Motion
AnimatePresence, a height tween
here
play(), 3 frames
open
a cut, then a line a frame
close
one cut

A panel cuts open at its full height, then its lines step in, one a frame. Closing is one cut. Tab moves between the sections; Enter or Space opens one.

motion / radix / radix: checkbox

after a motion+ example
check it, then clear it
margin_rebuilds/​radix/​radix-checkbox.tsx
Motion
pathLength, a draw
here
play(), 4 frames
a frame
60 ms, a quarter of the mark
clear
one cut

The check draws left to right in four cuts, a quarter of its width each, and clearing it is one cut.

motion / radix / radix: context menu

after a motion+ example
right-click the area
margin_rebuilds/​radix/​radix-context-menu.tsx
Motion
scale and fade in
here
the State set
open
a cut, at the pointer
keys
Menu key, arrows, Escape

The menu cuts in at the pointer, with no scale and no fade. The row under the pointer or the arrows is one solid grey step.

motion / radix / radix: dialog

after a motion+ example
open the dialog, then close it
margin_rebuilds/​radix/​radix-dialog.tsx
Motion
AnimatePresence, a scale
here
play(), 3 frames
open
a cut, then the parts step in
close
one cut, focus back

The dialog and its screen cut in. Then the title, the text and the actions step in, one a frame. Closing is one cut, and focus returns to the button.

motion / radix / radix: dropdown menu

after a motion+ example
open the menu, then choose a row
margin_rebuilds/​radix/​radix-dropdown.tsx
Motion
a spring on open and close
here
the State set
open
a cut
marks
a check cuts in

The list cuts open under its button. A highlighted row is one grey step, and a check or a dot cuts onto the chosen row.

motion / radix / radix: progress

after a motion+ example
a build that rises in whole steps
margin_rebuilds/​radix/​radix-progress.tsx
Motion
a spring on the value
here
play(), 10 frames
a frame
100 ms, 10 percent
value
the number cuts with the bar

The bar and its number rise in ten whole steps of ten percent. Nothing glides between two values.

motion / radix / radix: radio group

after a motion+ example
choose a spacing with a click or the arrows
margin_rebuilds/​radix/​radix-radio-group.tsx
Motion
layout, a moving dot
here
the State set
choose
the dot cuts to the new radio
keys
arrows move and choose

The mark cuts from one radio to the next, and the preview changes its spacing in the same cut. Nothing slides.

motion / radix / radix: select

after a motion+ example
open the list, then choose a row
margin_rebuilds/​radix/​radix-select.tsx
Motion
scale and fade in
here
the State set
open
a cut
choose
the list cuts shut, focus back

The list cuts open, one grey row follows the arrows, and a choice cuts the list shut and the value into the button.

motion / radix / radix: switch

after a motion+ example
flip it with a click or Space
margin_rebuilds/​radix/​radix-switch.tsx
Motion
a spring on the thumb
here
the State set
flip
the thumb cuts to the other end
keys
Space

The thumb cuts from one end to the other, and the track changes its fill in the same cut. A press is bone while it is held.

motion / radix / radix: tabs

after a motion+ example
open a tab: arrows move, Enter opens
margin_rebuilds/​radix/​radix-tabs.tsx
Motion
layoutId, a sliding underline
here
play(), 3 frames
underline
a cut under the new tab
panel
its parts step in
original
Radix: Tabs

The underline cuts from one tab to the next. The new panel's parts step in, one a frame. Arrows move focus; Enter or Space opens a tab.

motion / radix / radix: toast

after a motion+ example
set a reminder, then swipe the toast away
margin_rebuilds/​radix/​radix-toast.tsx
Motion
a slide in, a swipe out
here
the State set
show
a cut
away
swipe, close, undo or 5 s
original
Radix: Toast

The toast cuts in at the foot of the screen. A swipe moves it with the pointer, and it cuts away on release past the edge. Close, Undo and the timer also cut it away.

motion / radix / radix: toggle group

after a motion+ example
choose one: arrows move, Space chooses
margin_rebuilds/​radix/​radix-toggle-group.tsx
Motion
layoutId, a moving pill
here
the State set
choose
the fill cuts to the new item
keys
arrows move, Space chooses

The pressed fill cuts from one item to the next, and the preview follows in the same cut.

motion / radix / radix: toolbar

after a motion+ example
Tab in once, then use the arrows
margin_rebuilds/​radix/​radix-toolbar.tsx
Motion
layoutId, whileTap
here
the State set
toggle
a fill cuts on and off
keys
one Tab stop, arrows inside

The toolbar is one Tab stop and the arrows move inside it. Each toggle is one solid fill, and the sample text changes in the same cut.

motion / radix / radix: tooltip

after a motion+ example
rest on a button, or focus it with Tab
margin_rebuilds/​radix/​radix-tooltip.tsx
Motion
a fade and a rise
here
the State set
open
a cut, after a delay
keys
focus opens, Escape closes

The tip cuts in after a short delay on hover or keyboard focus, and cuts out when the pointer or the focus leaves. Escape closes it.

motion / radix / radix: slider with animatenumber

after a motion+ example
drag the thumb, or use the arrows
margin_rebuilds/​radix/​number-radix-slider.tsx
Motion
AnimateNumber, a spring
here
the State set, a Glitch
value
whole steps of 5
keys
arrows, Home, End

The thumb moves in whole steps and the number cuts with it. When the thumb is let go, the number glitches once.