Orbit Chip Button
Web (React)
A solid primary pill led by a paper chip whose arrow turns forward on hover.
A solid primary pill led by a paper chip. On hover the chip's diagonal arrow turns to point forward and the pill lifts. Colours come from the active theme and palette. Transitions are turned off when the user prefers reduced motion.
Installation
CLI
npx @modus-ui/cli add orbit-chip-buttonManual
- Install
framer-motion. - Copy the code from the component tab.
- Create a file at
components/ui/orbit-chip-button.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | "Start a draft" | Button text. |
onClick | MouseEventHandler<HTMLButtonElement> | undefined | Click handler. |
Comments