# typewriterText

> The `typewriterText()` style-mixin factory: paints the text a `Typewriter` has not revealed yet transparent, in the host and every element inside it, so the text holds its final layout while it types out.

```ts
import { typewriterText } from "@sdxc/ui/styles";
```

Hides the unrevealed text of every `Typewriter` typing inside the host. A text shadow would
still show the hidden glyphs, so it goes too.

## Signature

```ts
typewriterText<Node extends Element = Element>(): MixinDescriptor<
	Node,
	[styles: CSSStyles],
	ElementProps
>
```

Returns: A `css()` mixin ready for the host element's `mix` prop.

## Examples

```tsx
<p mix={[typewriterText()]}>{text}</p>
```
