1 GitHub star = 1 new component.

Star the repo
Typographytypography3dcreative

3D Stacked Text

Text layers that create a three-dimensional depth effect.

Live Preview

3D Stacked Text

Usage

Copy and paste this code into your React component:

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

<Text3DLayer>3D TEXT</Text3DLayer>

Manual Installation

If you are not using the npm package, create a new file and paste the following code: 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; } }

Quick Info

Category
Typography
Filename
Text3DLayer.tsx
Dependencies
None โ€” pure React + CSS
Tags
typography3dcreative