Expand description
Β§π¬ Demo
Β§π 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?
- π¨ Fully Customizable: Control color, variant, size, placement, class, style, and ARIA labels.
- π΄ Dot Mode: When no children are provided the badge renders as a compact status dot.
- π Smart Placement: Four corner placements (
top-right,top-left,bottom-right,bottom-left) via CSStransformfor pixel-perfect positioning. - βΏ Accessible by Default:
role="status",aria-label, andaria-atomicwired up automatically. - π§© Framework Agnostic: Same API semantics across Yew, Dioxus, and Leptos.
Β§Y Yew Usage
Refer to our guide to integrate this component into your Yew app.
§𧬠Dioxus Usage
Refer to our guide to integrate this component into your Dioxus app.
Β§π± Leptos Usage
Refer to our guide 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.
- Fork the repository.
- Create a new branch for your feature/bugfix.
- Submit a pull request for review.
Β§π License
Badges RS is licensed under the MIT License. You are free to use, modify, and distribute this library in your projects.
Re-exportsΒ§
pub use common::Color;pub use common::Placement;pub use common::Shape;pub use common::Size;pub use common::Variant;
