Warp Background Demo

PreviousNext

Example showing a card with a time warping background effect.

Docs
magicuiexample

Preview

Loading preview…
registry/example/warp-background-demo.tsx
import {
  Card,
  CardContent,
  CardDescription,
  CardTitle,
} from "@/components/ui/card"
import { WarpBackground } from "@/registry/magicui/warp-background"

export default function ExampleComponentDemo() {
  return (
    <WarpBackground>
      <Card className="w-80">
        <CardContent className="flex flex-col gap-2 p-4">
          <CardTitle>Congratulations on Your Promotion!</CardTitle>
          <CardDescription>
            Your hard work and dedication have paid off. We&apos;re thrilled to
            see you take this next step in your career. Keep up the fantastic
            work!
          </CardDescription>
        </CardContent>
      </Card>
    </WarpBackground>
  )
}

Installation

npx shadcn@latest add @magicui/warp-background-demo

Usage

import { WarpBackgroundDemo } from "@/components/warp-background-demo"
<WarpBackgroundDemo />