Skip to content
GaudiGaudi Design System home

Search documentation

Search every page, heading and paragraph.

Typewriter

Types, pauses and deletes a sequence of phrases while reserving space for the longest one.

AnimationsText@gaudi/design-system/animations/TypewriterView in StorybookSource

Installation

pnpm add github:ahmadassaf/design-system

Import from @gaudi/design-system. Load @gaudi/design-system/global.css once and add transpilePackages: ['@gaudi/design-system'] in Next.js.

import { Typewriter } from '@gaudi/design-system/animations/Typewriter';

Usage

import { Typewriter } from '@gaudi/design-system/animations/Typewriter';
<Typewriter texts={["Create", "Explore"]} />

Examples

Playground

Storybook

One sentence

Storybook

API

8 props

Accessibility

All phrases are exposed once as stable text, without a live region. Reduced motion shows the complete current phrase. Pausing freezes the current typed fragment. Provide a pause control for repeating sequences.

Notes

  • Visual idea inspired by Text Type from React Bits (MIT + Commons Clause). Independently implemented for Gaudi; no React Bits code or assets are included.