Skip to content

    Browse components

    Sensitive Text

    Spoiler text veiled by blur and shimmering noise particles until you hover, focus or click it.

    Open
    Customize
    hover
    click

    Installation

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

    Usage

    import { SensitiveText } from "@/components/ui/sensitive-text";
    
    <p>The killer was <SensitiveText>the butler</SensitiveText> all along.</p>

    Props

    PropTypeDefaultDescription
    childrenReactNode—The hidden content.
    revealOn"hover" | "click""hover"Reveal while hovered/focused, or toggle on click/Enter/Space.
    blurnumber8Blur applied to the hidden text, in px.
    densitynumber1Particle density multiplier for the noise veil.
    speednumber1Particle drift speed multiplier.
    labelstring"Hidden text, activate to reveal"Accessible label for the hidden state.
    classNamestring—Extra classes for the root element.