When to use it
Cap large counts, such as 99+.
Overlay a count on an icon button or avatar.
Native example
Cap large counts, such as 99+.

Captured exampleExpo web renderer
Open interactive previewimport { LumenFloatingBadge, LumenIconButton } from '@santi020k/lumen-react-native'
export function NotificationsButton({ unread, onPress }: { unread: number; onPress: () => void }) {
return (
<LumenFloatingBadge count={unread}>
<LumenIconButton
intent="outline"
label={`Notifications, ${unread} unread`}
name="bell"
onPress={onPress}
/>
</LumenFloatingBadge>
)
}Reference
The primary shared and platform-specific options exposed by LumenFloatingBadge.
| API | Values or type | Default | Description |
|---|---|---|---|
| count / max / content | number / cap / anchor | required / 99 / required | Cap large counts, such as 99+. |
Native behavior
Cap large counts, such as 99+.
Decorative by default; put the count in the anchor's name.
Shared component