| Framework | Live Demo |
|---|---|
| Yew | |
| Dioxus | |
| Leptos |
A highly customizable, accessible avatar component for WASM frameworks: Yew, Dioxus, and Leptos. Supports image loading with automatic fallback content, multiple sizes, color themes, and full WCAG compliance.
- π¨ Fully Customizable: Control every attribute, class, style, size, color, variant, ARIA labels and more.
- πΌοΈ Smart Image Loading: Tracks
idle β loading β loaded/errorstatus with context. Fallback is shown until the image is ready. - β± Delay Support: Prevent flash-of-fallback on fast connections with
delay_ms. - βΏ Accessible by Default:
role="img",aria-label,aria-hiddenwired up automatically. - π§© Framework Agnostic: Same API semantics across Yew, Dioxus, and Leptos.
Refer to our guide to integrate this component into your Yew app.
Refer to our guide to integrate this component into your Dioxus app.
Refer to our guide to integrate this component into your Leptos app.
Contributions are welcome! Whether it's bug fixes, feature requests, or examples, we would love your help to make Avatar better.
- Fork the repository.
- Create a new branch for your feature/bugfix.
- Submit a pull request for review.
Avatar is licensed under the MIT License. You are free to use, modify, and distribute this library in your projects.