NK

Search

Search pages, posts, and components

All components

Aurora Background

Background Effects

A container with a slowly drifting aurora gradient behind its content.

Aurora

Installation

Add it with the shadcn CLI:

$pnpm dlx shadcn@latest add https://nawalkattel.com.np/r/aurora-background.json
Or install manually
  1. 1. Install dependencies

    pnpm add motion clsx tailwind-merge
  2. 2. Copy the component source into components/library/aurora-background.tsx

Props

PropTypeDefaultDescription
childrenReactNode - Content shown above the gradient.
classNamestring - Classes applied to the container.

Accessibility

  • The gradient layer is aria-hidden and purely decorative.
  • Content sits in its own stacking context above the blur.
  • Slow rotation avoids the flicker fast gradients can cause.

Dependencies

motionclsxtailwind-merge