Carregando…
Carregando…
Carregando…Animated spinning or pulsing gradient border wrapper for any content.
$ npx kikitocn add gradient-borderimport { GradientBorder } from "@/components/ui/cn/gradient-border/GradientBorder";
export function GradientBorderExample() {
return (
<GradientBorder />
);
}| Prop | Tipo | Padrão | Descrição |
|---|---|---|---|
children* | React.ReactNode | — | Conteúdo interno |
colors | string[] | — | Array de cores do gradiente |
borderWidth | number | 2 | Espessura da borda (px) |
borderRadius | number | 12 | Border-radius (px) |
speed | number | 3 | Velocidade da animação (s) |
variant | 'spin' | 'pulse' | 'static' | 'spin' | Tipo de animação |
className | string | — | Classes CSS extras |
Gradient Border — spinning and static variants
Spin
Conic gradient
Pulse
Token colors
Static
Linear gradient