Components/Effects
Text rendered as a glowing tube sign, with optional power-on flicker.
Usesmotion
open late
arcade · noodles · karaoke
Installation#
npx shadcn@latest add https://get-neonkit.vercel.app/r/neon-text.jsonUsage#
import { NeonText } from "@/components/ui/neon-text"
<NeonText as="h1" color="magenta" buzz>open late</NeonText>Examples#
Power switch
Flip on to replay the power-on flicker. Off leaves the glass tube visible.
VACANCY
Colors
Bar24hTaxiHotelLive
API reference#
NeonText
| Prop | Type | Default |
|---|---|---|
as | "span" | "p" | "div" | "h1" | "h2" | "h3" | "h4"Element to render. | "span" |
color | NeonColorTube color. | inherited |
on | booleanLit or dark. Turning it on replays the flicker. | true |
flicker | booleanLetters stutter on one at a time when lit. | true |
buzz | booleanA random letter buzzes every few seconds. | false |
Accessibility#
- String children are split into letters for the flicker; screen readers get the whole word once.
- Flicker and buzz are skipped when the user prefers reduced motion.