Button
Chip Button
NewThe library's standard filled button: a label and a round chip with an arrow that turns on hover.
npx motionsnack add chip-buttonCustomize
<ChipButton />Props
10 properties
| Property | Type | Default | Description |
|---|---|---|---|
| onClick | () => void | - | Click handler, for the plain button and the link alike. |
| icon | ReactNode | arrow | Icon in the round chip at the end. Pass null for no chip. |
| buttonColor | string | near-black / near-white in dark | Fill colour. |
| buttonTextColor | string | white / near-black in dark | Text colour. |
| buttonRadius | number | fully round | Corner radius in px. |
| className | string | '' | Extra classes on the button. |
| label | string | 'Get started' | Text of the button. |
| href | string | '' | Link target. With a value the button is a link, without one a plain button. |
| fullWidth | boolean | false | Stretch to the width of the parent. |
| onDark | boolean | false | Keep the button light in the light look too, for a dark banner or photo behind it. |
About Chip Button
The filled button most sections of the library use. A solid pill with crisp inner edges, the label on the left and a round chip in the opposite colour on the right; the arrow inside turns on hover. A section can pass its own icon, an envelope in the contact banners for example. It renders as a link when it gets an href and as a plain button otherwise. Colour, text colour and corner radius are props. It takes the same props as the other library buttons, so it can be handed to any section through its Button prop.
What's included
- Round icon chip with an arrow that turns
- Custom icon or no chip at all
- Link or plain button
- Full-width mode
- Fits every section's Button prop
- Light and dark look
- Type
- Animated React button component
- Library
- Components · Button
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-11-20
- Install
npx motionsnack add chip-button