Pill
Markup where the component goes, CSS in your stylesheet. No JavaScript.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/loader-pillAbout 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