GodUIGodUI
109Follow on X

Border Beam

A beam of light circles the card border.

Border Beam

tsx
import { BorderBeam } from "@/components/godui/border-beam";import { Card, CardHeader, CardTitle, CardDescription, CardContent } from "@/components/ui/card";export function BorderBeamDemo() {return (  <Card className="relative min-h-[200px] w-[350px] overflow-hidden">    <CardHeader>      <CardTitle>Border Beam</CardTitle>      <CardDescription>A beam of light circles the card.</CardDescription>    </CardHeader>    <CardContent>      <p className="text-sm text-muted-foreground">        Wrap it in a relative, overflow-hidden container.      </p>    </CardContent>    <BorderBeam duration={8} size={70} />  </Card>);}