import Avatar from 'nes-design/es/Avatar'; OR import { Avatar } from 'nes-design';
Prop / 参数 | Description / 描述 | Type / 类型 | Default / 默认值 |
---|---|---|---|
src | avatar img src attribute / src 属性 | string | - |
size | avatar size | 'large' | 'medium' | 'small' | - |
round | avatar shape | boolean | - |
...rest | more attribute | React.HTMLAttributes<HTMLSpanElement> | - |