Displays an avatar chip with image, name, and template label. Supports selection and click handling.
<AvatarChip avatarBasicInformation={avatar} />
<AvatarChip avatarBasicInformation={avatar} isTemplate />
<AvatarChip avatarBasicInformation={avatar} isSelected onSelect={handleSelect} />
import { book } from '@promptbook/utils';
import { AvatarChipFromSource } from '@promptbook/components';
<AvatarChipFromSource
source={book`
AI Avatar
PERSONA A friendly AI assistant that helps you with your tasks
`}
isSelected
onSelect={handleSelect}
/>
avatarBasicInformation
isTemplate
false
className
""
onSelect
isSelected
false