ant-design/components/avatar/index.en-US.md

17 lines
668 B
Markdown
Raw Normal View History

2017-05-28 14:20:59 +08:00
---
category: Components
type: Data Display
title: Avatar
---
2017-06-07 11:18:31 +08:00
Avatars can be used to represent people or object, which supports image, antd-Icon, or letter.
2017-05-28 14:20:59 +08:00
## API
| Property | Description | Type | Default |
|----------- |--------------------------------------------------------- | ---------- |-------|
| type | to set the shape of avatar | Enum{ 'circle', 'square' } | `circle` |
| 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 | - |