Skip to content

    Browse components

    Weight Press

    A full-width headline whose letters swell in weight and stretch taller as the cursor presses close.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/weight-press

    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/weight-press.json

    Usage

    import { WeightPress } from "@/components/ui/weight-press";
    
    <WeightPress text="Pressure" className="font-display text-9xl" />

    Props

    PropTypeDefaultDescription
    textstring"Pressure"Headline text.
    minWeightnumber300Weight at rest.
    maxWeightnumber900Weight under the cursor.
    radiusnumber280Px around the cursor that applies pressure.
    stretchnumber0.35Extra vertical stretch at full pressure.
    alphabooleanfalseFade letters that feel no pressure.
    smoothingnumber0.16How quickly letters follow the cursor.
    classNamestring—Extra classes for the root element.