#[avatar] (http://naotu.baidu.com/file/30558b0d9ef09e2418e01b92637b78e4?token=e84a3a418061c022)
---
category: Components
subtitle: 头像
type: Data Display
title: Avatar
---

用来代表用户或事物，支持图片、图标或字符展示。

## API

| 参数 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
| icon | 设置头像的图标类型，参考 `Icon` 组件 | string | - |
| shape | 指定头像的形状 | Enum{ 'circle', 'square' } | `circle` |
| size | 设置头像的大小 | Enum{ 'large', 'small', 'default' } | `default` |
| src | 图片类头像的资源地址 | string | - |
