Skip to content

    Browse components

    Decorated Text

    Frames a word with corner brackets, a dashed selection box and twinkling sparkles that draw in on view or hover.

    Open
    Customize

    all
    brackets
    box
    sparkles
    view
    hover

    Installation

    npx shadcn@latest add @glint-ui/decorated-text

    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/decorated-text.json

    Usage

    import { DecoratedText } from "@/components/ui/decorated-text";
    
    <DecoratedText text="Design with intent" decoration="all" />

    Props

    PropTypeDefaultDescription
    textstring"Design with intent"Text to decorate.
    decoration"all" | "brackets" | "box" | "sparkles""all"Which decorations to draw.
    trigger"view" | "hover""view"Draw in when scrolled into view, or only while hovered.
    colorstring"#a3e635"Decoration color.
    durationnumber900Draw-in duration, in ms.
    classNamestring—Extra classes for the root element.