# Persona

An animated presence for voice agents.

- **Use it for**: An animated presence for a voice agent.
- **Not for**: People. Try [Avatar](https://unseenui.com/components/avatar/).

## Installation

```bash
npm install @stackunseen/ui
```

## Usage

```tsx
import { Persona } from '@stackunseen/ui/media';
import '@stackunseen/ui/styles.css';

<Persona state="listening" />
```

## All props

| Prop | Type | Description |
| --- | --- | --- |
| `className` | `string` |  |
| `name` | `string` | Agent name, used in the accessible description. |
| `showLabel` | `boolean` | Show the state as visible text below the orb. |
| `size` | `number` |  |
| `state` (required) | `PersonaState` | Host-reported voice agent state. |

## Keyboard

Tab reaches controls; Enter or Space activates buttons. Accordions use arrow keys, Home and End. Select menus support arrows and typeahead; Escape closes menus and dialogs and restores focus.

## Works with

[AudioPlayer](https://unseenui.com/components/audio-player/), [Transcription](https://unseenui.com/components/transcription/), [VoiceSelector](https://unseenui.com/components/voice-selector/), [VoiceControl](https://unseenui.com/components/voice-control/)

Page: https://unseenui.com/components/persona/
