Ink Capsule
Web (React)
An ink-filled capsule with a comet of light orbiting inside it and a serif label.
A capsule filled with the theme's primary ink, with a soft comet of light circling inside it. On hover the comet settles into a centred glow and a halo ring widens around the capsule. The label is set in the heading serif. Animations and transitions are turned off when the user prefers reduced motion.
Installation
CLI
npx @modus-ui/cli add ink-capsuleManual
- Install
framer-motion. - Copy the code from the component tab.
- Create a file at
components/ui/ink-capsule.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | "Join the list" | Button text. |
onClick | MouseEventHandler<HTMLButtonElement> | undefined | Click handler. |
Comments