Skip to content

    Browse components

    Crease Type

    Lines or letters swing open like creased paper in 3D, with a soft shadow lifting as each piece unfolds.

    Open
    Customize

    letters
    lines
    view
    hover
    loop
    top
    bottom

    Installation

    npx shadcn@latest add @glint-ui/crease-type

    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/crease-type.json

    Usage

    import { CreaseType } from "@/components/ui/crease-type";
    
    <CreaseType lines={["Unfold", "the next", "big idea"]} trigger="hover" />

    Props

    PropTypeDefaultDescription
    linesstring[]["Unfold","the next","big idea"]One entry per line.
    splitBy"letters" | "lines""letters"Unfold each letter or whole lines.
    trigger"view" | "hover" | "loop""view"Unfold once on view, refold and unfold on hover, or keep looping.
    hinge"top" | "bottom""top"Edge the paper hinges on.
    staggernumber45Delay between pieces, in ms.
    durationnumber1000Duration of each piece, in ms.
    classNamestring—Extra classes for the root element.