- Android
- iOS
- Web
Badge
A Badge component is a small UI element used to display a count, status, or label associated with another element, such as an icon or button. Badges are commonly used to highlight notifications, messages, or any relevant information in a compact and visually distinct way, often appearing as small circles or rectangles with numbers or text.
Example.tsx
| Name | Type | Default | Details |
|---|---|---|---|
| children | ReactNode | Optional | |
| color | string | default | Use default, accent, success, warning, or danger. |
| variant | string | soft | Use primary, secondary, or soft. |
| size | string | number | md | Use sm, md, or lg. |
| className | string | Optional | Supported Tailwind-style utilities, resolved entirely in Rust. See the engine README. |
| role | string | Optional |