Get the kit
Components / Interactionsv1.0.0 · updated 2026-09-21

Pill Button

Free · MIT

The 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
Free
Customize
Tone
Size
Accent

Install

No dependencies beyond React. Copy the file and import it.

  1. Copy Pill.tsx from the Code tab into components/brazen/.
  2. Make sure the Brazen tokens are loaded (tokens.css); colours and timing come from them.
  3. Import it and pass the props below.

Props 5

PropTypeDefaultDescription
tone"hot" | "ink" | "line" | "ghost""hot"Colour role.
size"sm" | "md" | "lg""md"Height and padding.
arrowbooleanfalseShow the turning arrow.
magnetbooleanfalseJoin the global magnetic cursor.
hrefstring—Render as a link.

Features

  • Four tones, three sizes
  • Pointer-origin flood fill
  • Link or button
  • Loading state

Dependencies

  • react@>=19 peer
  • next@>=15 peer

Works with

  • React 19
  • Next.js 15+
  • TypeScript

Reduced motion

Fill and roll become instant colour changes.

Related