PatternsAvatar picker
Avatar picker
User avatar preview with validated file-selection and caller-owned upload or remove controls.
Avatar picker
API
image-src
string? — Caller-authored preview source.first-name
string?last-name
string?email
string?state-expression
Alpine expression owned by the caller; use rest or loadingerror-expression
Alpine string expression owned by the caller and rendered as the invalid statekoala-avatar-picker-upload
label slot containing the file chooser; emits koala-avatar-selected with the selected file; caller owns validation, multipart encoding, antiforgery, target, submission, and failure handlingkoala-avatar-picker-input
file input slotkoala-avatar-picker-remove
button slot for a caller-owned remove form