Component
Badge
A FormaUI badge — a small status marker for indicating unread counts or presence.
import dev.formaui.components.badge.FormaBadge
import dev.formaui.components.badge.FormaBadgedBox
Preview
This toggle is site chrome only — the preview has its own light/dark switch inside.
Live preview — ~37 MB development build
Usage
FormaBadgedBox(badge = { FormaBadge(count = 5) }) { Text("Inbox")}FormaBadgedBox(badge = { FormaBadge() }) { Text("Updates")}
FormaBadge
A small status marker: a dot badge when count is null, otherwise a numeric badge capped at maxCount with a trailing + (e.g. 99+).
FormaBadgedBox
Anchors a badge to the top-end corner of some content — the FormaUI wrapper over Material 3's BadgedBox.
Accessibility
The badge is decorative; put the meaningful description (including any count) on the annotated element's contentDescription (e.g. "Messages, 5 unread") — not on the badge — so screen readers announce it in context.