Avatar
Photo Uploader
Changing the profile photo with a label and a hidden file input: clickable, keyboard-reachable, no JavaScript.
What you can change
- name, src, label and hint — the requirements copy
- accept — the formats you take
- the circle size through the variable
A link for your AI agent: preview, code and instructions.
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.ru/c/avatar-006?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
The component is self-contained: one file, no dependencies, its own palette in the local --vibeui-avatar-006-* variables. The role of the button is played by a <label> tied to an input type="file" through useId. The field is hidden by size and opacity but stays in the flow — display:none would have taken focus away from it. The veil with its caption appears both on hover and on focus of the field through an adjacent selector, and the ring is placed on the wrapper through :has(). The theme comes from the surrounding color-scheme through light-dark(): the dark branch is not an inversion of the light one — the circle fill, the rings and the statuses each have their own pair of lightnesses.
Tags
- avatar
- upload
- file
- no-js
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…