Docs
Typewriter

Typewriter

A repeating typewriter effect

Installation

npx shadcn@latest add https://cult-ui.com/r/typewriter.json

Usage

import { TypewriterDemo } from "@/components/ui/typewriter"
const texts = [
  "Testing 124",
  "Look at newcult.co",
  "and check gnow.io",
  "Sick af",
]
 
export default function TypewriterDemo() {
  return (
    <IosOgShellCard>
      <div className="ml-auto px-4 py-2 mb-3 text-white bg-blue-500 rounded-2xl">
        <p className="text-sm md:text-base font-semibold text-base-900 truncate">
          <Typewriter texts={texts} delay={1} baseText="Yo " />
        </p>
      </div>
    </IosOgShellCard>
  )
}