Halo Invite
Web (React)
A card-coloured invite pill with a monogram badge and a halo of light circling its edge.
An invite link in a card-coloured pill: a serif monogram badge (or a portrait), a serif label and an arrow chip that fills with ink on hover, while a halo of the theme's primary colour circles the edge. Animations and transitions are turned off when the user prefers reduced motion.
Installation
CLI
npx @modus-ui/cli add halo-inviteManual
- Install
framer-motion. - Copy the code from the component tab.
- Create a file at
components/ui/halo-invite.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | "Book a studio call" | Link text. |
href | string | "#" | Link target. |
avatarSrc | string | undefined | Portrait for the leading badge; a monogram is drawn when omitted. |
avatarAlt | string | "" | Alt text for the portrait. |
monogram | string | "M" | Letter for the monogram badge. |
speed | number | 5 | Seconds per revolution of the halo. |
onClick | MouseEventHandler<HTMLAnchorElement> | undefined | Click handler. |
Comments