Skip to content

    Browse components

    Outline Fill

    Outlined lettering that draws its stroke, then wipes in a solid fill on view or on hover.

    Open
    Customize

    view
    hover

    Installation

    npx shadcn@latest add @glint-ui/outline-fill

    First 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

    PropTypeDefaultDescription
    textstring"Outline"Text to draw.
    strokeColorstring"#bef264"Outline color.
    fillColorstring"#ecfccb"Fill color.
    strokeWidthnumber1.2Outline thickness, % of font size.
    durationnumber2200Ms for draw and fill.
    trigger"view" | "hover""view"Fill on view or while hovered.
    classNamestring—Extra classes for the root element.