Search nx-ui

Jump to any foundation, component, block or example.

Persona

A Rive-powered agent persona with selectable activity state.

$bunx shadcn@latest add @nx-ui/ai-persona
Registry item
Installs withutils

Interactive example

Load the animation, then switch between agent states.

Agent is idle.

API reference

Exported parts and their props, extracted from the component source.

PropTypeDefaultDescription
state*PersonaState"idle"—
onLoadRiveParameters["onLoad"]——
onLoadErrorRiveParameters["onLoadError"]——
onReady() => void——
onPauseRiveParameters["onPause"]——
onPlayRiveParameters["onPlay"]——
onStopRiveParameters["onStop"]——
classNamestring——
variantkeyof typeof sources"obsidian"—