aurora-background
aceternity/aurora-backgroundUnverifiedComponent
aceternity publishes no description for this item.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/rickhallett/becoming-diamond-nextjs/main/aurora-background.jsonSource
1"use client";2import { cn } from "@/lib/utils";3import React, { ReactNode } from "react";45interface AuroraBackgroundProps extends React.HTMLProps<HTMLDivElement> {6 children: ReactNode;7 showRadialGradient?: boolean;8}910export const AuroraBackground = ({11 className,12 children,13 showRadialGradient = true,14 ...props15}: AuroraBackgroundProps) => {16 return (17 <main>18 <div19 className={cn(20 "transition-bg relative flex h-[100vh] flex-col items-center justify-center bg-zinc-50 text-slate-950 dark:bg-zinc-900",21 className,22 )}23 {...props}24 >25 <div26 className="absolute inset-0 overflow-hidden"27 style={28 {29 "--aurora":30 "repeating-linear-gradient(100deg,#3b82f6_10%,#a5b4fc_15%,#93c5fd_20%,#ddd6fe_25%,#60a5fa_30%)",31 "--dark-gradient":32 "repeating-linear-gradient(100deg,#000_0%,#000_7%,transparent_10%,transparent_12%,#000_16%)",33 "--white-gradient":34 "repeating-linear-gradient(100deg,#fff_0%,#fff_7%,transparent_10%,transparent_12%,#fff_16%)",3536 "--blue-300": "#93c5fd",37 "--blue-400": "#60a5fa",38 "--blue-500": "#3b82f6",39 "--indigo-300": "#a5b4fc",40 "--violet-200": "#ddd6fe",41 "--black": "#000",42 "--white": "#fff",43 "--transparent": "transparent",44 } as React.CSSProperties45 }46 >47 <div48 // I'm sorry but this is what peak developer performance looks like // trigger warning49 className={cn(50// … truncated
Files it writes
More from aceternity
All 89 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| 3d-card3d-card | aceternity | Components | Unverified | no deps | |
| 3d Globe3d-globe | aceternity | Components | Free | 3 deps | |
| 3d-marquee3d-marquee | aceternity | Components | Unverified | no deps | |
| 3d-pin3d-pin | aceternity | Components | Unverified | 1 dep | |
| animated-modalanimated-modal | aceternity | Components | Unverified | 1 dep | |
| animated-testimonialsanimated-testimonials | aceternity | Components | Unverified | 2 deps | |
| animated-tooltipanimated-tooltip | aceternity | Components | Unverified | 1 dep | |
| apple-cards-carouselapple-cards-carousel | aceternity | Components | Unverified | 2 deps |
