Skip to content

    Browse components

    Near Bold

    Letters grow bolder, larger and brighter the closer the pointer gets, with a tunable radius and falloff.

    Open
    Customize

    linear
    exponential
    gaussian

    Installation

    npx shadcn@latest add @glint-ui/near-bold

    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/near-bold.json

    Usage

    import { NearBold } from "@/components/ui/near-bold";
    
    <NearBold text="Every letter leans in" radius={140} falloff="gaussian" />

    Props

    PropTypeDefaultDescription
    textstring"Every letter leans in when you come close"Text to render.
    radiusnumber140Px from the pointer where letters react.
    falloff"linear" | "exponential" | "gaussian""gaussian"Response curve from the pointer outwards.
    fromWeightnumber400Weight far from the pointer.
    toWeightnumber900Weight under the pointer.
    scalenumber1.15Scale under the pointer.
    activeColorstring"#bef264"Tint near the pointer. Empty to disable.
    as"p" | "h1" | "h2" | "h3" | "span" | "div""p"Element to render.
    classNamestring—Extra classes for the root element.