Avatars can take an image or a short string in order to display a tidy, circular element that can be used in your UI. Avatars are commonly seen in user profiles.
Property | Type | Required | Default | Description |
---|---|---|---|---|
size | Number | false | 40 | Diameter of the Avatar. |
children | Node | false | - | The content of the component; can take text, an image, or an icon. |
src | String | false | - | The src attribute for the img element. |
alt | String | false | - | Used in combination with src to provide an alt attribute for the rendered img element. |