1 estrella en GitHub = 1 componente nuevo.

Dar una estrella
Tipografíatypography3dcreative

3D Stacked Text

Capas tipográficas superpuestas que generan un efecto de profundidad tridimensional 3D.

Vista Previa en Vivo

3D Stacked Text

Uso

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

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

<Text3DLayer>3D TEXT</Text3DLayer>

Instalación Manual

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

Text3DLayer.tsx
'use client';

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

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

export function Text3DLayer({ children }: Text3DLayerProps) {
  return (
    <>
      <div className="stack-3d" data-rk-68aabd="">{children}</div>
    </>
  );
}

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

.stack-3d:where([data-rk-68aabd]) { font-size: 4rem; font-weight: 900; color: #fff; position: relative; text-shadow: 1px 1px #6366f1, 2px 2px #6366f1, 3px 3px #6366f1, 4px 4px #6366f1; line-height: 1.1; }
@media (max-width: 768px) { .stack-3d:where([data-rk-68aabd]) { font-size: 2.5rem; } }

Información Rápida

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