Components / Interactionsv1.0.0 · updated 2026-09-21
Pill Button
Free · MITThe flood fill grows from wherever the pointer entered, the label rolls on hover and the arrow turns. Renders a Next.js Link when given an href, a button otherwise.
buttonlinkhover
Customize
Tone
Size
Accent
Install
No dependencies beyond React. Copy the file and import it.
- Copy
Pill.tsxfrom the Code tab intocomponents/brazen/. - Make sure the Brazen tokens are loaded (
tokens.css); colours and timing come from them. - Import it and pass the props below.
Props 5
| Prop | Type | Default | Description |
|---|---|---|---|
tone | "hot" | "ink" | "line" | "ghost" | "hot" | Colour role. |
size | "sm" | "md" | "lg" | "md" | Height and padding. |
arrow | boolean | false | Show the turning arrow. |
magnet | boolean | false | Join the global magnetic cursor. |
href | string | — | Render as a link. |
Features
- Four tones, three sizes
- Pointer-origin flood fill
- Link or button
- Loading state
Dependencies
react@>=19peernext@>=15peer
Works with
- React 19
- Next.js 15+
- TypeScript
Reduced motion
Fill and roll become instant colour changes.