TypingIndicator

Animated bouncing dots indicator showing that one or more users are currently typing, with automatic text formatting.

Preview

Live previewCustomize theme

No Users

Single User

Alice is typing

Two Users

Alice and Bob are typing

Multiple Users

Alice and 2 others are typing

Import

tsx
import { TypingIndicator } from '@velocityuikit/velocityui'

Props

PropTypeDefaultDescription
usersstring[][]Names of users who are typing.

Examples

Single User

tsx
import { TypingIndicator } from '@velocityuikit/velocityui'

export default function Example() {
  return <TypingIndicator users={['Alice']} />
}

Multiple Users

tsx
import { TypingIndicator } from '@velocityuikit/velocityui'

export default function Example() {
  return <TypingIndicator users={['Alice', 'Bob']} />
}

Theming

Apply a named theme class to <body> or any parent element. All VelocityUI components inside that element will automatically adopt its colors, shadows, and effects. Combine with a density modifier for complete control:

html
/* Pick any named theme */
<body class="vui-theme-ocean">

/* Add a density modifier (optional) */
<body class="vui-theme-midnight vui-density-compact">
<body class="vui-theme-construction vui-density-spacious">

/* Available themes */
/* default  midnight  ocean  dark-cyan  tangerine */
/* construction  glass  soft  high-contrast  monochrome-red */

/* Available densities */
/* vui-density-compact  vui-density-comfortable  vui-density-spacious */