Texto brillante
NuevoMITUn destello sutil que recorre el texto, ideal para etiquetas y anuncios.
✦ Nuevo: BSTRD UI
Ajústalo
100
Instalación
Terminal
npx shadcn@latest add https://<tu-dominio>/r/texto-brillante.json
Crea components/bastard/AnimatedShinyText.tsx. Más opciones
Uso
Demo.tsx
1import { AnimatedShinyText } from '@/components/bastard/AnimatedShinyText';23export default function Demo() {4 return (5 <AnimatedShinyText6 shimmerWidth={100}7 >8 ✦ Nuevo: BSTRD UI9 </AnimatedShinyText>10 );11}
Props
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
| children | string | "✦ Nuevo: BSTRD UI" | Texto |
| shimmerWidth | number | 100 | Ancho del destello |
Aquí aparecen las props ajustables. El componente acepta más: revisa el código fuente.
Créditos
Basado en Animated Shiny Text · Magic UI, adaptado para BSTRD UI.Licencia: MIT. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.