Avatar editor
A profile photo the person changes themselves: upload, replace, remove with a confirm, drop a file on it.
Basic
With a photo the camera button opens "Change photo" and "Remove"; without one it opens the file picker at once. Removing asks first. photoChange gives the file (or null): upload it, keep loading on meanwhile, then set the new image.
Validation
accept and maxFileSize check the file from the picker and from a drop; a wrong one emits rejected with the reason, here shown in a toast. size sets the photo size in px.
Design tokens
The editor group of the avatar tokens sets the size, the ring and the button.