Toggle Sidebar B
AppearanceLight & dark mode D

Spring Check

Checkbox row where the fill swells out of the box centre on a spring, the tick draws itself and a strike-through wipes across the label.

Default

Click a row to check it. With the keyboard the state changes instantly, with a pointer it springs.

Dark previewReplay previewOpen in new tab

Customize

Ink
Fill
Check
Box Size28px
Box Radius9px
Font Size18px
Bounce0.2
Strike Lag0.12
Done Opacity0.42
Strike

API Reference

SpringCheck

PropTypeDefaultDescription
labelstring'Ship the build'The words beside the box. The strike-through is exactly their width.
checkedbooleanundefinedControlled state, bound with v-model:checked. A change from outside animates on the spring.
defaultCheckedbooleanfalseInitial state when uncontrolled.
disabledbooleanfalseDims the row and ignores input.
colorstring'#ffffff'Ink: the label, the ring, the rule and the focus outline.
fillColorstring'#ffffff'The fill that swells out of the box centre.
checkColorstring'#0b0b0f'Stroke of the tick drawn over the fill.
boxSizenumber28Box side in pixels. Ring, gap and row height derive from it.
boxRadiusnumber9Box corner radius in pixels. Half the size makes a circle.
fontSizenumber18Label size in pixels. The rule thickness derives from it.
bouncenumber0.2How far the fill swells past full. 0 arrives dead, 0.5 rebounds twice.
strikeLagnumber0.12Where on the spring the rule starts. 0 wipes with the fill, 0.4 waits for the tick.
doneOpacitynumber0.42How much ink the words keep once checked.
strike'left' | 'center' | 'right' | 'none''left'Where the strike-through wipes from, or no rule at all.
ariaLabelstring-Accessible name when the label is not text.
EventDescription
changeEmitted with the new boolean on every toggle.
update:checkedEmitted alongside change, for v-model:checked.
SlotDescription
defaultLabel content. Replaces the label prop.

Accessibility

Keyboard shortcuts and ARIA behavior.

Shortcut Description
Space + EnterToggles the checkbox.
  • Rendered as a button with role checkbox and aria-checked. The strike-through is decorative.
  • With prefers-reduced-motion the state jumps to its end value instead of springing.