Comet Ring Button
Web (React)
A card-toned button whose hairline rim is chased by a comet of theme colour.
A quiet card-toned button with a mono, tracked label. A single comet of the theme's primary colour laps its hairline rim, a fine ruled texture drifts across the face, and on hover a soft glow rises from below while the arrow chip turns. Everything is drawn from the theme tokens, so it follows light, dark and every palette; motion stops when the user prefers reduced motion.
Installation
CLI
npx @modus-ui/cli add comet-ring-buttonManual
- Install
framer-motion. - Copy the code from the component tab.
- Create a file at
components/ui/comet-ring-button.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | "Begin a draft" | Button text. |
speed | number | 4 | Seconds for the comet to complete one lap of the rim. |
onClick | MouseEventHandler<HTMLButtonElement> | undefined | Click handler. |
Comments