Skip to content

    Browse components

    ASCII Text

    Text rasterized into shimmering ASCII glyphs on a canvas, rippling in a slow wave and bulging under the pointer like a lens.

    ASCII
    Open
    Customize

    Installation

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

    Usage

    import { AsciiText } from "@/components/ui/ascii-text";
    
    <div className="relative h-80">
      <AsciiText text="ASCII" cellSize={11} />
    </div>

    Props

    PropTypeDefaultDescription
    textstring"ASCII"Text to rasterize.
    cellSizenumber11Height of one character cell, in px.
    charsetstring" .:-=+*#%@"Glyphs ordered from sparse to dense.
    colorstring"#bef264"First gradient color.
    secondaryColorstring"#22d3ee"Second gradient color.
    waveAmplitudenumber6Horizontal wave distortion, in px.
    waveSpeednumber1Wave speed multiplier.
    pointerRadiusnumber150Radius of the pointer lens, in px. 0 disables it.
    classNamestring—Extra classes for the root element.