Aurora Text
magicui/aurora-textFreeComponent
A beautiful aurora text effect
Live preview
live · rendered by the registry
Rendered by magicui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://magicui.design/r/aurora-text.jsonSource
1"use client"23import React, { memo } from "react"45interface AuroraTextProps {6 children: React.ReactNode7 className?: string8 colors?: string[]9 speed?: number10}1112export const AuroraText = memo(13 ({14 children,15 className = "",16 colors = ["#FF0080", "#7928CA", "#0070F3", "#38bdf8"],17 speed = 1,18 }: AuroraTextProps) => {19 const gradientStyle = {20 backgroundImage: `linear-gradient(135deg, ${colors.join(", ")}, ${21 colors[0]22 })`,23 WebkitBackgroundClip: "text",24 WebkitTextFillColor: "transparent",25 animationDuration: `${10 / speed}s`,26 }2728 return (29 <span className={`relative inline-block ${className}`}>30 <span className="sr-only">{children}</span>31 <span32 className="animate-aurora relative bg-size-[200%_auto] bg-clip-text text-transparent"33 style={gradientStyle}34 aria-hidden="true"35 >36 {children}37 </span>38 </span>39 )40 }41)4243AuroraText.displayName = "AuroraText"
Files it writes
More from magicui
All 247 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Androidandroid | magicui | Components | Free | no deps | |
| Animated Beamanimated-beam | magicui | Components | Free | 1 dep | |
| Animated Circular Progress Baranimated-circular-progress-bar | magicui | Components | Free | no deps | |
| Animated Gradient Textanimated-gradient-text | magicui | Components | Free | no deps | |
| Animated Grid Patternanimated-grid-pattern | magicui | Components | Free | 1 dep | |
| Animated Listanimated-list | magicui | Components | Free | 1 dep | |
| Animated Shiny Textanimated-shiny-text | magicui | Components | Free | no deps | |
| Theme Toggleranimated-theme-toggler | magicui | Components | Free | 1 dep |
