Hulian UIv0.93.5413 components0 components
  • Start
  • Components
  • Blocks
  • Pages
  • Demos
  • Changelog
ChineseEnglish
  • ComponentsComponents
  • ThemeTheme

Text

  • Text
  • Heading
  • SectionHeader
  • Prose
  • Markdown
  • Formula
  • AuroraText
  • LineShadowText
  • AnimatedShinyText
  • AnimatedGradientText
  • WordRotate
  • TypingAnimation
  • SparklesText
  • SplitText
  • BlurText
  • FlipText
  • TextReveal
  • DecryptedText
  • GlitchText
  • CircularText
  • ScrollReveal
  • TrueFocus
  • ASCIIText
  • CurvedLoop
  • FallingText
  • FuzzyText
  • ScrambledText
  • ScrollFloat
  • ScrollVelocity
  • Shuffle
  • TextCursor
  • TextPressure
  • VariableProximity

Code

  • Code
  • CodeBlock
  • Snippet
  • CodeDiff
  • Kbd

FuzzyText

fuzzy-text

Adds animated displacement noise to text while keeping its silhouette readable.

Usage

Basic usage

The text is randomly misaligned line by line, causing scanning noise, and the jitter increases when hovering. The default color is var (--color-foreground) according to the theme.

tsx
<FuzzyText fontSize="clamp(2rem, 8vw, 5rem)">Hulian</FuzzyText>

404 signal noise

Increase fuzzRange and baseIntensity to create a sense of signal distortion, suitable for error page titles.

tsx
<FuzzyText
  fontSize="clamp(3rem, 14vw, 8rem)"
  fuzzRange={42}
  baseIntensity={0.3}
  color="var(--color-chart-1)"
>
  404
</FuzzyText>

Longitudinal misalignment

direction="vertical" is changed to column-by-column up and down misalignment.

tsx
<FuzzyText direction="vertical" color="var(--color-chart-2)">GLITCH</FuzzyText>

Two-way superposition

direction="both" horizontal and vertical misalignment superposition, the strongest noise; hoverIntensity controls the hover gain.

tsx
<FuzzyText direction="both" hoverIntensity={0.8} color="var(--color-chart-4)">NOISE</FuzzyText>

When to use

Use FuzzyText for a short, bold 404 or technical heading with signal noise and scan displacement. Use ScrambledText for hover-driven character scrambling or AuroraText for a smooth luminous gradient. FuzzyText shifts canvas rows and columns, so it works best on compact display text.

Import

ts
import { FuzzyText } from "@hulianui/ui"

Props

Inherit CanvasHTMLAttributes<HTMLCanvasElement> (go to color/children/style), the core is as follows:

NameTypeDefaultDescription
fontSizenumber | string"clamp(2rem, 10vw, 10rem)"Numbers are in px, strings are in any CSS length (including clamp), and the viewport is adaptive.
fontWeightnumber | string900Font weight, noise in thick strokes is more eye-catching
fontFamilystring"inherit"Font family, inherit reads canvas computed font-family
colorstringvar(--color-foreground)Fill color, according to the light and dark theme; any CSS color can be passed (including var()/currentColor, internally analyzed by computed style); style.color has higher priority
enableHoverbooleantruePointer jitter increases when within text range
baseIntensitynumber0.18Resting state noise intensity (0-1), the larger the value, the “hairier” it is
hoverIntensitynumber0.5Hover state noise intensity (0-1)
fuzzRangenumber30The maximum pixel displacement amplitude of each row/column determines the noise dispersion range
direction"horizontal" | "vertical" | "both""horizontal"Dithering direction: left and right by row/up and down by column/overlay of both
classNamestring-supports canvas extra className
styleCSSProperties-supports canvas inline styles

Slots

SlotTypeDescription
children*ReactNodeText to render (plain text only, will be spelled into one line)

Usage guidelines

  • Rendering uses <canvas>, so children should be plain text; nested elements are flattened into a string.
  • Color is resolved through computed styles. var(--color-*) and currentColor work, but Canvas cannot consume Tailwind classes directly; use the color prop or style.color.
  • Reduced-motion mode renders a readable static frame. Do not use jitter as the only feedback.

Related

Text · Heading · Prose · Markdown · AuroraText · AnimatedShinyText

Playground

<FuzzyText
  baseIntensity={0.18}
  hoverIntensity={0.5}
  fuzzRange={30}
  direction="horizontal"
  enableHover={true}
>
  Hulian
</FuzzyText>
PreviousFallingTextTypographyNextScrambledText

On this page

  • Usage
  • Documentation
    • When to use
    • Import
    • Props
    • Slots
    • Usage guidelines
    • Related
  • Playground