Loading preview
Background Beams
BackgroundsCurved lines across a section with light traveling along them.
Soft, blurred color fields that drift slowly behind content.
npx shadcn@latest add @venusui/aurora-backgroundRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/aurora-background.tsxThe code behind the preview above.
aurora-background-demo.tsx
import { AuroraBackground } from "@/components/ui/aurora-background"
export default function AuroraBackgroundDemo() {
return (
<AuroraBackground className="flex h-64 w-full max-w-xl items-center justify-center rounded-xl border bg-card">
<p className="text-3xl font-semibold tracking-tight">Northern lights</p>
</AuroraBackground>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| colors | [string, string, string] | indigo, cyan, emerald | Three blob colors. |
| intensity | number | 0.35 | Overall strength, 0–1. |
All <div> props, including className and children.
aurora keyframes. Works in Server Components.intensity so text stays readable.overflow-hidden; keep it.Unknown registry "@venusui"npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.No components.json foundnpx shadcn@latest init in your project first.Curved lines across a section with light traveling along them.
Beams of light fall to the floor and burst into sparks when they land.
A glowing bar casting a cone of light that opens over the content below.