Skip to content
GaudiGaudi Design System home

Search documentation

Search every page, heading and paragraph.

ChatPersona

The assistant’s presence in a voice conversation: an orb that rests, connects, listens, thinks, speaks, sleeps or shows an error, drawn by one of eight renderers.

Chat@gaudi/design-system/chat/ChatPersonaView in StorybookSource

Installation

pnpm add github:ahmadassaf/design-system

Import from @gaudi/design-system. Load @gaudi/design-system/global.css once and add transpilePackages: ['@gaudi/design-system'] in Next.js.

import { ChatPersona } from '@gaudi/design-system/chat/ChatPersona';

Usage

import { ChatPersona, useAudioLevel } from '@gaudi/design-system/chat';
const { levelRef, waveformRef } = useAudioLevel(micStream);
<><ChatPersona name='Gaudi' state='listening' variant='waveform' size='lg' levelRef={levelRef} waveformRef={waveformRef} /><ChatPersona name='Gaudi' state='speaking' variant='iridescent' level={replyLevel} showLabel /></>

Examples

Playground

Storybook

Orbs and states

Storybook

API

15 props

Accessibility

role=img named after the assistant and state, with a polite status for changes; the still frame differs per state, and animation stops off screen, when asleep and for reduced motion.