

Every state


default


hover


focus


empty


uploading


error
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| name | string | Dirk-Jan Mulder | Person's name, used for the initials when there is no photo. |
| src | string | /components/people/dirkjan.webp | Current photo. An empty string shows the empty state. |
| maxSizeMb | number | 2 | Largest accepted file in megabytes. |
| accept | string | image/jpeg,image/png,image/webp | Accepted image types. |
| progress | number | null | null | Upload progress 0 to 100; null when nothing is uploading. |
| error | string | null | null | An error from your upload. File type and size errors are added by the component. |
| onSelect | (file: File) => void | Called with a file that passed the checks. | |
| onRemove | () => void | Called when the photo is removed. |
More avatars
All 13avatar-12 is in UI ProGet UI Pro, €199