Components

Components

Component

Adds friction to risky actions in two modes. Slide: drag a round knob along a pill track that fills behind it; letting go before 90% springs it back, reaching the end locks it with a check and a green track. Hold: press and hold a button whose background fills over a set time and drains back at double speed if released early. A tick ruler under both lights segment by segment. onConfirm may return a promise, which shows a spinner until it settles and then success or an inline error with Retry. An optional Undo appears for a set window, after which it resets or stays done. The slider works with arrow keys, End or Enter and Escape, the hold button with Space or Enter, touch works through pointer capture, the result is announced, and reduced motion swaps the spring for a snap.

Buttons · Chomodo Studio 0 likes 0 installs
Component

A horizontal strip of rounded image frames you can grab and throw. Drag, horizontal scroll or the arrow keys move it, and a throw keeps its speed then slows with smooth friction. Loop mode repeats the set seamlessly and drifts at an idle pace, picking the drift back up after a throw; free mode has springy ends. Images sit wider than their frames and slide against the motion for depth, frames lean slightly in the direction of a fast throw, and a caption fades in under the centre frame once the strip comes to rest. Items without images get a generated gradient from your chart colours. It is a labelled carousel with focusable slides, a drag never triggers a click, hover and focus pause the drift, a pause button appears when it moves on its own, and reduced motion steps item by item without drift, inertia or parallax.

Animation & motion · Chomodo Studio 0 likes 0 installs