Electric Text

Animated electric text with glowing, distorted outline for dynamic neon effects.

Feel the Sparks
Feel the Sparks

Installation

npx shadcn@latest add https://scrollxui.dev/registry/electric-text.json 

Usage

import { ElectricText } from "@/components/ui/electric-text";
<ElectricText
        color="#BB8A2C"
        showFill={false}
        speed={1}
        glowIntensity="high"
        chaos={1}
        strokeWidth={3}
        className="text-5xl font-bold"
      >
        Feel the Spark
      </ElectricText>

API Reference

Electric Text

Animated electric text with glowing, distorted outline for dynamic neon effects.

Props

PropertyTypeDefaultDescription
childrenReactNode-
The text or React nodes to display with the electric effect.
colorstring#5227FF
Primary stroke color for the electric outline.
speednumber1
Animation speed multiplier for the electric effect.
chaosnumber1
Intensity of the distortion in the electric effect.
strokeWidthnumber2
Width of the text stroke for the electric outline.
classNamestring-
Custom class names for styling the root container.
glowIntensity'low' | 'medium' | 'high'medium
Controls blur and opacity levels of the glow layers.
fillColorstringrgba(0,0,0,0.8)
Fill color for the text when `showFill` is true.
showFillbooleantrue
Toggles the fill layer. Set to false to show only electric outline.

Built withby Ahdeetai.