Pill

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/loader-pill

About this component

A button-sized loader: a pill whose border is a comet of violet, pink and amber light running round it, with three dots inside rising and falling in turn.

Triggers

  • Loop
  • Continuous
  • Border
  • Gradient

Techniques

  • Conic gradient
  • Keyframes
  • Stagger
  • CSS variables

Difficulty

Beginner

Accessibility

Keyboard and screen readers

The root has role="status" and aria-label "Loading"; the comet, face and dots are aria-hidden.

Reduced motion

The animations stop and the comet rests on one side of the border.

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

More loaders

See all
ReticleGet code
RisoGet code
ShiftGet code
SlabGet code