Conjure Button
Web (React)
A seated paper button whose serif letters shimmer in a wave and swap to an active label on focus.
A card button seated in a muted well. Its serif letters shimmer in a wave, the spark icon flickers, and on focus the letters bloom and blur into the active label, with a glow rising from the theme's primary colour. Animations and transitions are turned off when the user prefers reduced motion.
Installation
CLI
npx @modus-ui/cli add conjure-buttonManual
- Install
framer-motion. - Copy the code from the component tab.
- Create a file at
components/ui/conjure-button.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | "Compose" | Resting label. |
activeLabel | string | "Composing" | Label shown while focused. |
onClick | MouseEventHandler<HTMLButtonElement> | undefined | Click handler. |
Comments