Kiln Button
Web (React)
A glowing pill button fired from the theme's primary and destructive colours, with a coal-chip chevron.
A pill whose gradient is mixed from the theme's primary and destructive tokens, so it smoulders in any palette, with a soft kiln glow behind it. It lifts and brightens on hover and presses in on click; the chevron sits in a round coal chip. Animations and transitions are turned off when the user prefers reduced motion.
Installation
CLI
npx @modus-ui/cli add kiln-buttonManual
- Install
framer-motion. - Copy the code from the component tab.
- Create a file at
components/ui/kiln-button.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | "Fire it up" | Button text. |
type | "button" | "submit" | "reset" | "button" | Native button type. |
onClick | MouseEventHandler<HTMLButtonElement> | undefined | Click handler. |
Comments