Animations
GradientBorder
Animated gradient border wrapper that cycles colors continuously.
Quick Preview
Production Track
Study maintainable UI patterns, forms, and delivery habits.
Installation
# No extra dependencies
// Copy component fromsrc/components/animations/GradientBorder.tsx
Usage
import GradientBorder from '@/components/animations/GradientBorder'<GradientBorder><p>Content with animated gradient border</p></GradientBorder>
Examples
Custom Colors & Thick Border
Featured Module
Use animated emphasis to highlight an important block.
Button Style
Explore Track โ
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children* | React.ReactNode | - | Content inside the border |
gradientColors | string | '#F45A5A, #818cf8, #f472b6, #F45A5A' | CSS gradient color stops |
speed | number | 3 | Animation loop duration seconds |
borderWidth | number | 2 | Border width in px |
borderRadius | string | '1rem' | Border radius |
padding | string | '1rem' | Inner content padding |
className | string | - | Additional CSS classes |