Ink Endcap Button
Web (React)
An italic serif pill with a round ink endcap, as a hairline outline or a solid fill.
An italic serif pill finished with a round endcap holding an arrow. The default outline variant is a hairline ring with a primary endcap; solid fills the pill with the primary colour and inverts the endcap. It lifts slightly on hover and holds still when the user prefers reduced motion.
Installation
CLI
npx @modus-ui/cli add ink-endcap-buttonManual
- Install
framer-motion. - Copy the code from the component tab.
- Create a file at
components/ui/ink-endcap-button.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | "Open the archive" | Button text. |
variant | "solid" | "outline" | "outline" | solid is ink on paper; outline is a hairline ring with an ink endcap. |
onClick | MouseEventHandler<HTMLButtonElement> | — | Click handler for the button. |
Comments