Glaze Button
Web (React)
A glazed button in the theme's primary colour with a serif label and a sheen that sweeps across on hover.
A glazed button poured in the theme's primary colour: lighter at the top-left, deeper at the base, with an inset highlight and a coloured drop shadow. The label is set in the serif heading face beside a mono return glyph, and a diagonal sheen sweeps across on hover. Transitions are off when the user prefers reduced motion.
Installation
CLI
npx @modus-ui/cli add glaze-buttonManual
- Install
framer-motion. - Copy the code from the component tab.
- Create a file at
components/ui/glaze-button.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | "Send the brief" | Button text. |
onClick | MouseEventHandler<HTMLButtonElement> | undefined | Click handler. |
Comments