SearchCtrlK

  • ↑↓navigate
  • ↵open
  • escclose

Can’t find it? Contact us

On this page

typewriterText

The typewriterText() style-mixin factory.

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

Usage

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

typescript
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>
@sdxc/ui

Can’t find it? Contact us