Introducing Magic UI Pro - 50+ blocks and templates to build beautiful landing pages in minutes.

19.0k
208

Shine Border

PreviousNext

Shine border is an animated background border effect.

Installation

pnpm dlx shadcn@latest add @magicui/shine-border

Examples

Monotone

Usage

import { ShineBorder } from "@/registry/magicui/shine-border";
<div className="relative h-[500px] w-full overflow-hidden">
  <ShineBorder />
</div>

Props

PropTypeDefaultDescription
classNamestring-The class name to be applied to the component.
durationnumber14Defines the animation duration to be applied on the shining border.
shineColorstring | string[]"#000000"Color of the border, can be a single color or an array of colors.
borderWidthnumber1Width of the border in pixels.
styleReact.CSSProperties-Additional styles to be applied to the component.