All components

Components · Controls

Button

A button. Primary for the main action on a screen, quiet for everything else.

Try itChange the motion setting at the top to feel each personality.

Use it

<Button>Start lesson</Button>
<Button variant="quiet">Skip</Button>

How it moves

WhenRoleWhat moves
Pointer moves over or awayfeedbackBackground color changes, using the role's duration and easing
Pressed downfeedbackScales to the role's scale
ReleasedfeedbackScales back to 1

Rules:

Reduced motion: the feedback scale is 1, so the button does not move. The hover color still changes, over the shortest duration.

CSS variables used: --ss-motion-feedback-scale, --ss-motion-feedback-spring, --ss-motion-feedback-spring-duration, --ss-motion-feedback-duration, --ss-motion-feedback-easing.