Prism Key
Web (React)
A frosted key-shaped button with a palette-tinted prism edge and an ink arrow chip.
A frosted button whose masked gradient rim catches the theme's primary colour like light through a prism. The default arrow variant carries a solid ink chip whose arrow tilts upward on hover; the plain variant is text only. Labels are set in uppercase mono, and every colour comes from the active theme. Animations and transitions are turned off when the user prefers reduced motion.
Installation
CLI
npx @modus-ui/cli add prism-keyManual
- Install
framer-motion. - Copy the code from the component tab.
- Create a file at
components/ui/prism-key.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "arrow" | "plain" | "arrow" | Key with an arrow chip, or text only. |
label | string | "Open the kit" (arrow) or "Request access" (plain) | Button text. |
onClick | MouseEventHandler<HTMLButtonElement> | undefined | Click handler. |
Comments