🌏 Translated with the assistance of DeepSeek and ChatGPT
Avatar
Represents a user's identity.
Basic Usage
The Avatar component has empty content.
AI
Hide source code
Avatar Size
Use the size prop to set different avatar sizes.
Hide source code
Avatar Shape
The avatar can be round or square.
Hide source code
Avatar Border
The bordered prop adds a border to the avatar.
Hide source code
API
AvatarProps
| Attribute | Type | Optional | Default | Description | Version |
|---|---|---|---|---|---|
| shape | 'circle' | 'square'' | True | 'circle' | The shape of the avatar. | 0.0.3 |
| size | 'medium' | 'large' | 'small' | number | True | 'medium' | The size of the avatar. | 0.0.3 |
| bordered | boolean | True | false | Whether the avatar has a border. | 0.0.3 |
| backgroundColor | string | True | | The background color of the avatar. See Supported Color Parsing. | 0.0.3 |
| borderColor | string | True | | The border color of the avatar. See Supported Color Parsing. | 0.0.3 |
| pollSizeChange | boolean | True | false | Enables polling for component size changes. This may impact performance. | 0.1.0 |
AvatarSlots
| Slot | Parameter | Description | Version |
|---|---|---|---|
| default | | The content of the avatar. | 0.0.3 |