BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/wise-ui/border-beam

Border Beam

wise-ui/border-beam
FreeComponent

A card with an animated beam traveling along its border.

Live preview

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

Install it

npx shadcn@latest add https://wise-ui.com/r/border-beam.json

Source

registry/wise-ui/components/border-beam.tsxwise-ui.com/r/border-beam.json
1"use client"
2
3import * as React from "react"
4import { motion } from "motion/react"
5import { cn } from "@/registry/wise-ui/lib/utils"
6
7interface BorderBeamProps {
8 size?: number
9 duration?: number
10 delay?: number
11 color?: string
12 className?: string
13}
14
15function BorderBeam({
16 size = 80,
17 duration = 6,
18 delay = 0,
19 color = "hsl(var(--primary))",
20 className,
21}: BorderBeamProps) {
22 return (
23 <div
24 className={cn(
25 "pointer-events-none absolute inset-0 overflow-hidden rounded-[inherit]",
26 className
27 )}
28 >
29 <motion.div
30 className="absolute inset-0"
31 style={{
32 background: `conic-gradient(from 0deg, transparent 0%, transparent 70%, ${color} 85%, transparent 100%)`,
33 width: "200%",
34 height: "200%",
35 left: "-50%",
36 top: "-50%",
37 }}
38 animate={{ rotate: 360 }}
39 transition={{
40 duration,
41 delay,
42 repeat: Infinity,
43 ease: "linear",
44 }}
45 />
46 {/* Inner mask to show only the border strip */}
47 <div className="absolute inset-[1.5px] rounded-[inherit] bg-background" />
48 </div>
49 )
50}
51BorderBeam.displayName = "BorderBeam"
52
53export { BorderBeam }
54export type { BorderBeamProps }

What it pulls in

npm packages

  • motion
  • clsx
  • tailwind-merge

Files it writes

  • registry/wise-ui/components/border-beam.tsx

Facts

Registry
wise-ui
Type
registry:component
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
yesterday

Go to the source

Docs on wise-ui wise-ui.com r-pathak/wise-ui on GitHub Raw registry item This item as JSON

More from wise-ui

All 20 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Animated Tabsanimated-tabswise-uiComponentsFree3 deps
Data Tabledata-tablewise-uiComponentsFree3 deps
Dockdockwise-uiComponentsFree3 deps
Dot Matrixdot-matrixwise-uiComponentsFree2 deps
Editable Texteditable-textwise-uiComponentsFree4 deps
Gradient Sidebargradient-sidebarwise-uiComponentsFree3 deps
Kanban Boardkanban-boardwise-uiComponentsFree6 deps
Magnetic Buttonmagnetic-buttonwise-uiComponentsFree3 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