Docs
Border Beam
Border Beam
Displays an animated border effect with a glowing beam around the content that adapts to the size of the container.
Loading...
Installation
Install dependencies
npm install
Add utils file
lib/utils.ts
Add the following code in your tailwind.config.js file
tailwind.config.js
Copy the source code
border-beam.tsx
Props
Prop | Type | Description | Default |
---|---|---|---|
lightWidth | Number | Defines the width of the light beam in pixels. | 200 |
duration | Number | The duration of the animation in seconds. | 10 |
lightColor | String | Specifies the color of the light beam. | "#FAFAFA" |
children | React.ReactNode | The content inside the "BorderBeam" component. | - |
className | String | Additional custom classes for styling the component. | - |