s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Chat

TypingIndicator

TypingIndicator — animated "…is typing" affordance. Renders a visible label plus decorative animated dots (`aria-hidden`) inside a polite `role="status"` live region, so both sighted users and screen readers learn who is typing. Honors reduced-motion. Pass `names` to announce one or more typists ("Ada is typing", "Ada and Bob are typing", "Ada and 2 others are typing") — an empty list renders nothing. Or pass a single `name` / a full `label` override. The animated dots stand in for the trailing ellipsis, so the label text omits it.

Public export

typescript
import { TypingIndicator } from '@happyvertical/smrt-ui/chat';
Import path
@happyvertical/smrt-ui/chat
Props
3
Props described
3 of 3
Bindable state
0
Callback events
0
Verified release
0.44.0

Props

NameTypeRequiredDescription
namestringNoWho is typing (single).
namesstring[]NoNames of everyone currently typing — aggregated into the label.
labelstringNoFull label override; defaults to an aggregation of `names`/`name`.

Bindable state

This component has no bindable public state.

Callback events

This component declares no callback event props.

Examples and explanation