<div align="center">
# 🏷️ Badges RS
[](https://crates.io/crates/badges-rs)
[](https://crates.io/crates/badges-rs)

[](https://www.rust-lang.org/)
[](https://www.rust-lang.org)
[](https://github.com/opensass)
[](https://discord.gg/b5JbvHW5nv)

</div>
## 🎬 Demo
| Yew | [](https://badges-rs.netlify.app) |
| Dioxus | [](https://badges-dio.netlify.app) |
| Leptos | [](https://badges-lep.netlify.app) |
## 📜 Intro
A highly customizable, accessible badge component for WASM frameworks: Yew, Dioxus, and Leptos.
Supports notification counts, status dots, labels, multiple colors, variants, sizes, and placements
with full WCAG compliance.
## 🤔 Why Badges RS?
1. **🎨 Fully Customizable**: Control color, variant, size, placement, class, style, and ARIA labels.
1. **🔴 Dot Mode**: When no children are provided the badge renders as a compact status dot.
1. **📍 Smart Placement**: Four corner placements (`top-right`, `top-left`, `bottom-right`, `bottom-left`) via CSS `transform` for pixel-perfect positioning.
1. **♿ Accessible by Default**: `role="status"`, `aria-label`, and `aria-atomic` wired up automatically.
1. **🧩 Framework Agnostic**: Same API semantics across Yew, Dioxus, and Leptos.
## Y Yew Usage
Refer to [our guide](https://github.com/opensass/badges-rs/blob/main/YEW.md) to integrate this component into your Yew app.
## 🧬 Dioxus Usage
Refer to [our guide](https://github.com/opensass/badges-rs/blob/main/DIOXUS.md) to integrate this component into your Dioxus app.
## 🌱 Leptos Usage
Refer to [our guide](https://github.com/opensass/badges-rs/blob/main/LEPTOS.md) to integrate this component into your Leptos app.
## 🤝 Contributions
Contributions are welcome! Whether it's bug fixes, feature requests, or examples, we would love your help to make Badges RS better.
1. Fork the repository.
1. Create a new branch for your feature/bugfix.
1. Submit a pull request for review.
## 📜 License
Badges RS is licensed under the [MIT License](LICENSE). You are free to use, modify, and distribute this library in your projects.