1 estrella en GitHub = 1 componente nuevo.

Dar una estrella
Tipografíatypographyheadingshadow

Text Shadow Reveal

Efecto de texto que emerge de las sombras con iluminación progresiva al pasar el ratón.

Vista Previa en Vivo

Text Shadow Reveal

Uso

Copia y pega este código directamente en tu componente React:

tsx
import { ShadowRevealText } from 'react-component-kit-ui/typography';

<ShadowRevealText>Content</ShadowRevealText>

Instalación Manual

Si no estás usando el paquete npm, crea un archivo nuevo y pega el siguiente código: src/components/ShadowRevealText.tsx + ShadowRevealText.css:

ShadowRevealText.tsx
'use client';

import type { ReactNode } from 'react';
import './ShadowRevealText.css';

/** ShadowRevealText — ported from astro-component-kit. */
export interface ShadowRevealTextProps {
  children?: ReactNode;
}

export function ShadowRevealText({ children }: ShadowRevealTextProps) {
  return (
    <>
      <h2 className="rev-text" data-rk-9adbdb="">{children}</h2>
    </>
  );
}

export default ShadowRevealText;
ShadowRevealText.css
/* ShadowRevealText — ported from astro-component-kit (typography/ShadowRevealText.astro) */

.rev-text:where([data-rk-9adbdb]) { font-size: 3.5rem; font-weight: 900; color: #fff; text-shadow: 4px 4px 0px rgba(99,102,241,0.3), 8px 8px 0px rgba(0,0,0,0.5); margin: 0; line-height: 1.1; }
@media (max-width: 768px) { .rev-text:where([data-rk-9adbdb]) { font-size: 2rem; } }

Información Rápida

Categoría
Tipografía
Nombre de archivo
ShadowRevealText.tsx
Dependencias
Ninguna — React + CSS puro
Etiquetas
typographyheadingshadow