Aurora Text
A beautiful aurora text effect
Ship beautiful
import { AuroraText } from '@/registry/magicui/aurora-text'
export function AuroraTextDemo() { return ( <h1 class=" text-4xl font-bold tracking-tighter md:text-5xl lg:text-7xl " > Ship {' '} <AuroraText>beautiful</AuroraText> </h1> )}Installation
Section titled “Installation”pnpm dlx shadcn@latest add @magicui-solid/aurora-textbunx shadcn@latest add @magicui-solid/aurora-textyarn dlx shadcn@latest add @magicui-solid/aurora-textnpx shadcn@latest add @magicui-solid/aurora-textImport
Section titled “Import”import { AuroraText } from '@/components/magicui/aurora-text'<AuroraText>Aurora Text</AuroraText>| Prop | Type | Default | Description |
|---|---|---|---|
class |
string |
"" |
The class name to be applied to the component |
children |
JSX.Element |
- |
Children elements |
colors |
string[] |
["#FF0080", "#7928CA", "#0070F3", "#38bdf8"] |
Array of colors used for the aurora effect |
speed |
number |
1 |
Animation speed multiplier (1 is default, 2 is twice as fast) |
Original:
magicui.design/docs/components/aurora-text