Browse components
Outline Fill
Outlined lettering that draws its stroke, then wipes in a solid fill on view or on hover.
Installation
npx shadcn@latest add @glint-ui/outline-fillFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/outline-fill.json
Usage
import { OutlineFill } from "@/components/ui/outline-fill";
<OutlineFill text="Outline" className="text-8xl font-black" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| text | string | "Outline" | Text to draw. |
| strokeColor | string | "#bef264" | Outline color. |
| fillColor | string | "#ecfccb" | Fill color. |
| strokeWidth | number | 1.2 | Outline thickness, % of font size. |
| duration | number | 2200 | Ms for draw and fill. |
| trigger | "view" | "hover" | "view" | Fill on view or while hovered. |
| className | string | — | Extra classes for the root element. |