Rust UI component that displays a badge or a component that looks like a badge.
- Copy Demo
Default
Installation
You can run either of the following commands:
# cargo install ui-cli --forceui add demo_badgeui add badge
Update the imports to match your project setup.
Usage
use crate::components::ui::badge::Badge;
<Badge>"Badge"</Badge>
Examples
1. Variants
- Copy Demo
DefaultSecondaryDestructiveOutline
2. Custom
- Copy Demo
Cutstom