Skip to content

    Browse components

    Static Type

    Canvas-drawn lettering whose pixel rows jitter sideways like a weak signal, getting noisier when you hover it.

    FUZZY

    Signal lost, hover to interfere

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/static-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/static-type.json

    Usage

    import { StaticType } from "@/components/ui/static-type";
    
    <StaticType text="404" baseIntensity={0.2} hoverIntensity={0.6} />

    Props

    PropTypeDefaultDescription
    textstring"FUZZY"Text to draw.
    fontSizestring"clamp(4rem, 15vw, 10rem)"Any CSS font-size; resolved to px for the canvas.
    fontWeightnumber900Font weight.
    colorstring"#fafafa"Text color.
    baseIntensitynumber0.18Jitter at rest.
    hoverIntensitynumber0.55Jitter while hovered.
    fuzzRangenumber30Maximum sideways shift of a row, in px.
    enableHoverbooleantrueRamp up the jitter on hover.
    classNamestring—Extra classes for the root element.