You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
669 B

8 years ago
---
category: Components
type: Data Display
title: Avatar
---
8 years ago
Avatars can be used to represent people or object, which supports image, antd-Icon, or letter.
8 years ago
## API
| Property | Description | Type | Default |
|----------- |--------------------------------------------------------- | ---------- |-------|
| shape | to set the shape of avatar | Enum{ 'circle', 'square' } | `circle` |
8 years ago
| size | to set the size of avatar | Enum{ 'large', 'small', 'default' } | `default` |
| src | the address of a image avatar | string | - |
| icon | the icon type of a icon avatar, see `Icon` Component | string | - |