Brickslab.

@brickslab/ui-web

Dégradé animé sur du texte. Plus contrôlable qu'AuroraText, pensé pour les titres brandables avec choix du mode (shift/rotate/pulse) et du type (linear/radial).

Modes d'animation

shift · rotate · pulse

Animation « shift »Animation « rotate »Animation « pulse »

Couleurs personnalisées

Palette brand complète

Mode radial

Centre vers bords

Props

PropTypeDéfautRequisDescription
childrenReactNodeTexte à afficher avec le dégradé animé.
colorStopsstring[]Couleurs du dégradé. Défaut : palette brand.
speednumber4Durée d'un cycle en secondes.
anglenumber90Angle du dégradé linéaire.
mode"linear" | "radial""linear"Type de dégradé.
animate"shift" | "rotate" | "pulse""shift"Style d'animation du dégradé.
reducedMotion"auto" | "always" | "never""auto"Désactive l'animation si prefers-reduced-motion.

Utilisation

tsx
import { AnimatedGradientText } from "@brickslab/ui-web";

<AnimatedGradientText>Dégradé animé par défaut</AnimatedGradientText>

// Palette custom + pulse
<AnimatedGradientText
  colorStops={["#CC4A48", "#F59E0B", "#4ADE80"]}
  animate="pulse"
  speed={3}
>
  Pulse coloré
</AnimatedGradientText>

// Mode radial
<AnimatedGradientText mode="radial">
  Centre lumineux
</AnimatedGradientText>