# Type Writer

Types words like a person: typos, a selection and a blinking caret.

Tier: Free

## Installation

```bash
npx shadcn add @fetaui/type-writer
```

## Usage

```tsx
import { TypeWriter } from '@fetaui/components/type-writer'

export function Example() {
  return <TypeWriter steps={['Typewriter', 'Auto Loop']} />
}
```

## API

| Prop | Type | Default |
|---|---|---|
| steps | (string or step)[] | required |
| styleKind | soft, original | soft |
| loop | boolean | true |
| animated | boolean | true |

## When to use

- For short hero lines.

## When not to use

- For anything people must read in time.

## Accessibility

- The full text is in the DOM for screen readers. The typing is hidden from them.

## Motion

- About 70 ms a letter, with a held word, a typo and a selection.
- The caret blinks at idle and pauses off screen.
- With reduced motion, the last word shows settled.
