Avatar
An image or initials for a person or team, decorative unless given a name.
- Use it for
- A person or team, with an image or initials.
- Not for
- Voice agent presence. Try Persona.
Avatar preview
SRSam Rivera
Installation
npm install @stackunseen/uiimport { Avatar } from '@stackunseen/ui';Styles:
@stackunseen/ui/styles.cssUsage and props
Pass name when the avatar is the only sign of who is shown; otherwise leave it decorative beside visible text. Supply accessible, licensed image URLs.
Supported inputs
This is the public signature used by this example. Open Code to see how the values and callbacks fit together.
name? · initials? · src? · size?: sm | default | lg · native span propsAll props
Loading…
For your coding agent
Give the agent this page instead of a screenshot. The prompt wraps the page with the install and import lines and the rule that your server, not a click, completes an action.
- Contract
- name? · initials? · src? · size?: sm | default | lg · native span props
- Keeps honest
- Pass name when the avatar is the only sign of who is shown; otherwise leave it decorative beside visible text. Supply accessible, licensed image URLs.
- MCP
read_component "Avatar"on the docs endpoint
Keyboard and customization
Keyboard
Inert content; it adds no tab stop.
Customization
Change shared colors, spacing, corners and icons with the theme. Use the component's supported props to adapt its content and layout. Customization guide and Theme Studio