DocsComponentsTemplatesThemesGitHub

TypingIndicator

Three pulsing dots while the assistant prepares a reply.

Code

import * as React from 'react';
import { TypingIndicator } from '@fruit-labs/design';

export default function Demo() {
  return <TypingIndicator />;
}

Install

From npm:

npm install @fruit-labs/design

import { TypingIndicator } from '@fruit-labs/design';

Or copy the TypeScript source into your project:

npx shadcn@latest add https://design.fruitlabs.online/r/typing-indicator.json

Guidelines

  • Replace with streamed text as soon as the first token arrives.

Props

PropTypeRequired
labelstringNo
classNamestringNo

Edit this example on GitHub