Rising Motes
Web (React)
A primary-ink button with motes of light drifting up through it.
A button in the theme's primary colour, lit from below, with small motes drifting upward through it. The arrow rises on hover and the button presses in on click. The label is set in uppercase mono. Animations and transitions are turned off when the user prefers reduced motion.
Installation
CLI
npx @modus-ui/cli add rising-motesManual
- Install
framer-motion. - Copy the code from the component tab.
- Create a file at
components/ui/rising-motes.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | "Subscribe" | Button text. |
onClick | MouseEventHandler<HTMLButtonElement> | undefined | Click handler. |
Comments