Satin Capsule
Web (React)
A satin card-toned capsule with a graded hairline, a mono annotation and a primary arrow chip.
A satin capsule shaded from the card and muted tokens, edged by a graded hairline. The label sits beside a small mono annotation and a round arrow chip in the primary colour that nudges forward on hover, while the shadow warms toward the primary. Transitions are off when the user prefers reduced motion.
Installation
CLI
npx @modus-ui/cli add satin-capsuleManual
- Install
framer-motion. - Copy the code from the component tab.
- Create a file at
components/ui/satin-capsule.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | "Read the notes" | Button text. |
meta | string | "04 min" | Small mono annotation after the label; pass an empty string to hide it. |
onClick | MouseEventHandler<HTMLButtonElement> | undefined | Click handler. |
Comments