Bookmark

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/checkbox-bookmark

About this component

A bookmark icon as the checkbox. Checking pours a ribbon of fill down from its top and the whole ribbon swings on its pin a few times before it hangs still; unchecking drains it back up. Pure CSS.

Triggers

  • Click
  • State change
  • Fill
  • Keyframe
  • Icon

Techniques

  • clip-path
  • Keyframes
  • CSS transition
  • Transform only

Difficulty

Beginner

Accessibility

Keyboard and screen readers

A native checkbox inside a <label>, so "Save for later" is its name. The icon is aria-hidden.

Reduced motion

It fills at once and does not swing.

Use it in anything you build, commercial and client work included. Licence

More checkboxes

See all
Dog-earGet code
FingerprintGet code
KeycapGet code
Select AllGet code