BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/magicui/border-beam-demo-2

Border Beam Demo

magicui/border-beam-demo-2
FreeExample

Example showing an animated border beam effect.

Live preview

live · rendered by the registry
Rendered by magicui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://magicui.design/r/border-beam-demo-2.json

Source

registry/example/border-beam-demo-2.tsxmagicui.design/r/border-beam-demo-2.json
1import { Play, SkipBack, SkipForward } from "lucide-react"
2
3import { Button } from "@/components/ui/button"
4import {
5 Card,
6 CardContent,
7 CardDescription,
8 CardFooter,
9 CardHeader,
10 CardTitle,
11} from "@/components/ui/card"
12import { BorderBeam } from "@/registry/magicui/border-beam"
13
14export default function MusicPlayer() {
15 return (
16 <Card className="relative w-[350px] overflow-hidden">
17 <CardHeader>
18 <CardTitle>Now Playing</CardTitle>
19 <CardDescription>Stairway to Heaven - Led Zeppelin</CardDescription>
20 </CardHeader>
21 <CardContent>
22 <div className="flex flex-col items-center gap-4">
23 <div className="h-48 w-48 rounded-lg bg-linear-to-br from-purple-500 to-pink-500" />
24 <div className="bg-secondary h-1 w-full rounded-full">
25 <div className="bg-primary h-full w-1/3 rounded-full" />
26 </div>
27 <div className="text-muted-foreground flex w-full justify-between text-sm">
28 <span>2:45</span>
29 <span>8:02</span>
30 </div>
31 </div>
32 </CardContent>
33 <CardFooter className="flex justify-center gap-4">
34 <Button variant="outline" size="icon" className="rounded-full">
35 <SkipBack className="size-4" />
36 </Button>
37 <Button size="icon" className="rounded-full">
38 <Play className="size-4" />
39 </Button>
40 <Button variant="outline" size="icon" className="rounded-full">
41 <SkipForward className="size-4" />
42 </Button>
43 </CardFooter>
44 <BorderBeam
45 duration={6}
46 size={400}
47 className="from-transparent via-red-500 to-transparent"
48 />
49 <BorderBeam
50 duration={6}
51 delay={3}
52 size={400}
53 borderWidth={2}
54 className="from-transparent via-blue-500 to-transparent"
55 />
56 </Card>
57 )
58}

What it pulls in

Other registry items

  • button
  • card
  • @magicui/border-beam

Files it writes

  • registry/example/border-beam-demo-2.tsx

Facts

Registry
magicui
Type
registry:example
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
today

Go to the source

Docs on magicui magicui.design magicuidesign/magicui on GitHub Raw registry item This item as JSON

More from magicui

All 247 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Android Demoandroid-demomagicuiExamplesFreeno deps
Android Demo 2android-demo-2magicuiExamplesFreeno deps
Android Demo 3android-demo-3magicuiExamplesFreeno deps
Animated Beam Bidirectionalanimated-beam-bidirectionalmagicuiExamplesFreeno deps
Animated Beam Demoanimated-beam-demomagicuiExamplesFree1 dep
Animated Beam Multiple Inputsanimated-beam-multiple-inputsmagicuiExamplesFreeno deps
Animated Beam Multiple Outputsanimated-beam-multiple-outputsmagicuiExamplesFreeno deps
Animated Beam Unidirectionalanimated-beam-unidirectionalmagicuiExamplesFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex