A text component with an animated glitch effect featuring customizable intensity levels and color schemes.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/kokonut-labs/kokonutui/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Usage
Props
The text content to display with glitch effect
Additional CSS classes for the container
Intensity level of the glitch animation
color
'rainbow' | 'blue' | 'purple' | 'cyan' | 'pink' | 'orange' | 'gradient-orange'
default:"'gradient-orange'"
Color scheme for the glitch effect
Custom background color
Disable animation and show static text
Text size (preset or custom pixel value)
Font weight (100-900)
Letter spacing value
Glitch Intensity Levels
- light: Subtle effect with minimal distortion
- medium: Balanced effect suitable for most uses
- heavy: Strong distortion and movement
- extreme: Maximum glitch effect with rapid changes
Color Schemes
- rainbow: Dynamic multi-hue color cycling
- blue: Vibrant blue tones
- purple: Rich purple shades
- cyan: Bright cyan palette
- pink: Vibrant pink colors
- orange: Tangerine orange tones
- gradient-orange: Multi-tone orange gradient
Examples
Static Glitch
Extreme Effect
Dependencies
motion/react- Animation libraryreact- useRef hook@/lib/utils- cn utility function