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

Backgrounds

  • DotPattern
  • GridPattern
  • StripedPattern
  • Spotlight
  • FadeMask
  • RetroGrid
  • Ripple
  • Meteors
  • Aurora
  • Particles
  • FlickeringGrid
  • WavyBackground
  • Silk
  • Iridescence
  • Threads
  • Orb
  • LiquidChrome
  • Balatro
  • Ballpit
  • Beams
  • ColorBends
  • DarkVeil
  • Dither
  • DotField
  • EvilEye
  • FaultyTerminal
  • Ferrofluid
  • FloatingLines
  • Galaxy
  • GradientBlinds
  • Grainient
  • GridDistortion
  • GridMotion
  • GridScan
  • Hyperspeed
  • LetterGlitch
  • Lightfall
  • Lightning
  • LightPillar
  • LightRays
  • LineWaves
  • LiquidEther
  • PixelBlast
  • PixelSnow
  • Plasma
  • PlasmaWave
  • Prism
  • PrismaticBurst
  • Radar
  • RippleGrid
  • ShapeGrid
  • SideRays
  • SoftAurora

Overlay Effects

  • BorderBeam
  • ShineBorder
  • GlareHover
  • Lens
  • AnimatedBeam
  • OrbitingCircles
  • ProgressiveBlur
  • CardSpotlight
  • Reveal
  • Antigravity
  • BlobCursor
  • ClickSpark
  • Crosshair
  • ElectricBorder
  • GhostCursor
  • GradualBlur
  • ImageTrail
  • LaserFlow
  • MagicRings
  • Magnet
  • MagnetLines
  • MetaBalls
  • MetallicPaint
  • OrbitImages
  • PixelTrail
  • PixelTransition
  • Ribbons
  • ShapeBlur
  • SplashCursor
  • StarBorder
  • StickerPeel
  • TargetCursor
  • Cubes
  • Tilt
  • BorderGlow
  • GlassIcons
  • GlassSurface
  • Lanyard
  • ModelViewer
  • FluidGlass

FaultyTerminal

faulty-terminal

Creates a distorted CRT character-rain background with tearing, scanlines, and ripple interaction.

Usage

Basic usage

Faulty CRT terminal character rain background; default character coloring is --color-chart-2, light and dark adaptive.

FaultyTerminal
tsx
<div className="relative h-56 overflow-hidden rounded-xl bg-neutral-950">
  <FaultyTerminal />
</div>

Old CRT (warm orange + barrel distortion)

tint changes to warm orange, curvature increases spherical curvature, and scanline + dispersion restores the texture of old picture tubes.

tsx
<FaultyTerminal
  tint="oklch(0.72 0.2 45)"
  curvature={0.45}
  scanlineIntensity={0.5}
  chromaticAberration={3}
/>

Signal tearing (high fault volume)

Increase glitchAmount / chromaticAberration / flickerAmount analog signal interference and tearing.

tsx
<FaultyTerminal
  glitchAmount={2}
  chromaticAberration={5}
  flickerAmount={1.5}
  brightness={1.2}
/>

Freeze Frame

pause advances the pause time and freezes the picture; mouseReact=false turns off the mouse response to make a purely static cover.

tsx
<FaultyTerminal pause scale={2} mouseReact={false} />

When to Use

Use it when you need a highly dynamic background (hero, loading page, 404) in the style of cyberpunk/hacker terminal/retro CRT glitch. If you want a static and regular grid base, use GridPattern; if you want a retro perspective grid horizon, use RetroGrid; if you want pure stripes, use StripedPattern. This component has the most dynamic effects and the most "signal distortion" narrative.

Import

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

Props

NameTypeDefaultDescription
scalenumber1.5Overall UV scaling, the larger the character, the denser the grid and the farther the field of view
gridMul[number, number][2, 1]Character grid row and column magnification [x, y], horizontally denser to imitate widescreen terminal
digitSizenumber1.5The dot matrix size within a single character, the larger the size, the fatter each "number" block is
timeScalenumber0.3Time flow rate factor, the larger the value, the faster the fault/flicker will be
pausebooleanfalseFreeze animation; forced freeze under reduced-motion, OR with this prop
scanlineIntensitynumber0.3Scan line intensity, 0=none
glitchAmountnumber1Lateral tear amount, >1 is more exaggerated, 1=original displacement
flickerAmountnumber1The amount of flickering on and off the entire screen, 0=none
noiseAmpnumber0Background organic noise amplitude, increasing superimposed flow fog noise
chromaticAberrationnumber0Dispersion (RGB separation) pixel amount, recommended 0-6
dithernumber | boolean0Jitter particle intensity, boolean true=1/false=0
curvaturenumber0.2Barrel distortion (CRT spherical curvature), 0=planar
tintstring--color-chart-2Character coloring, any CSS color, no theme token
mouseReactbooleantrueWhether to respond to pointer movement with character highlights and ripples
mouseStrengthnumber0.2Pointer influence intensity, only effective when mouseReact=true
pageLoadAnimationbooleantrueFade in animation frame by frame when loading
brightnessnumber1Overall brightness ratio
classNamestring-Class name forwarded to the root container or fallback
styleCSSProperties-Forward the root container inline style

Slots

SlotTypeDescription
fallbackReactNodereduced-motion / static alternative content without WebGL

Usage Guidelines

  • OGL/WebGL client-side rendering: placed within the "use client" boundary; SSR only provides fallback static coverage.
  • pause is not the only freeze switch - the reduced-motion preference will force freeze (or), pay attention to the system settings when debugging animations.
  • The root needs to be placed into the relative overflow-hidden positioning container and has its own height (such as h-56).
  • chromaticAberration / glitchAmount It is very expensive to increase the GPU. Use high values with caution when staying in the background.

Related

DotPattern · GridPattern · StripedPattern · Spotlight · RetroGrid · Ripple

Playground

<div className="relative h-56 overflow-hidden rounded-xl"
     style={{ background: "oklch(0.12 0.01 255)" }}>
  <FaultyTerminal
    scale={1.5}
    scanlineIntensity={0.3}
    curvature={0.2}
    brightness={1}
    mouseReact={true}
  />
</div>
PreviousEvilEyeDecorationNextFerrofluid

On this page

  • Usage
  • Documentation
    • When to Use
    • Import
    • Props
    • Slots
    • Usage Guidelines
    • Related
  • Playground