Sheen CTA
Web (React)
A paper pill with a serif italic label and a sweep of primary light on hover.
A paper-card pill with a serif italic label and a primary dot. On hover it lifts and a soft band of primary light sweeps across it. 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 sheen-ctaManual
- Install
framer-motion. - Copy the code from the component tab.
- Create a file at
components/ui/sheen-cta.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | "Join the folio" | Button text. |
type | "button" | "submit" | "reset" | "button" | Native button type. |
onClick | MouseEventHandler<HTMLButtonElement> | undefined | Click handler. |
Comments