GradientBorder
Animated gradient border wrapper for highlighting content containers.
GradientBorder
Animated gradient border wrapper for highlighting content containers while keeping the inner content layout under your control.
Basic Usage
GradientBorder
Demo will load when visible.
API
Props
| Prop | Type | Default | Description |
|---|---|---|---|
as | string | 'div' | Root element tag rendered by the wrapper. |
borderWidth | string | number | '2px' | Gradient border width; numeric values are normalized to pixels. |
borderRadius | string | number | '12px' | Border radius applied to the wrapper and gradient layer. |
padding | string | number | '12px' | Inner content padding; numeric values are normalized to pixels. |
animationDuration | number | 4 | Rotation animation duration in seconds. |