All components

Components · Controls

Input

A text field with a label that never moves. Typing has no motion.

Try itChange the motion setting at the top to feel each personality.
Shown on your streak.

Use it

<Input label="Your name" hint="Shown on your streak." error={error} />

How it moves

WhenRoleWhat moves
Typing, focusing, leaving the fieldnoneNothing. The focus ring appears at once
An error appearsattention, enterThe field shakes once across the attention distance, and the error message fades in and drops by the enter distance, growing from the enter scale
The error is fixednoneThe message is removed. Nothing moves

Rules:

Reduced motion: the attention and enter distances are 0, so the field does not shake and the message fades in where it stands.

CSS variables used: --ss-motion-attention-distance, --ss-motion-attention-duration, --ss-motion-attention-easing, --ss-motion-enter-distance, --ss-motion-enter-spring, --ss-motion-enter-spring-duration.