Actions
Icon badge
icon button with unread count/dot · always labelled
function IconBadgeDemo() { return ( <View className="flex-row items-center gap-2"> <IconBadge icon={BellIcon} count={3} accessibilityLabel="Notifications" /> <IconBadge icon={MailIcon} count={120} accessibilityLabel="Inbox" /> <IconBadge icon={ShoppingCartIcon} dot accessibilityLabel="Cart" /> <IconBadge icon={BellIcon} accessibilityLabel="Notifications, none" /> </View> );}Usage
Header icon button with an unread count. The label announces the count for screen readers.
API
<IconBadge icon count? dot? accessibilityLabel />Get it
Already in every copy of the native kit:
import { IconBadge } from '@/components/kit/icon-badge';Details
- Exports
IconBadge- Packages
- lucide-react-native@^1.21.0
- Installs with
- @halftone-native/icon, @halftone-native/lib-utils, @halftone-native/text
- Also searched as
- notification, bell, cart, unread count, icon button
- Registry JSON
- /r/native/icon-badge.json
<Row> <IconBadge icon={BellIcon} count={3} aria-label="Notifications" /> <IconBadge icon={ShoppingBagIcon} count={120} aria-label="Basket" /> <IconBadge icon={InboxIcon} dot aria-label="Inbox" /> <IconBadge icon={BellIcon} aria-label="Notifications" /></Row>Usage
Header icon button with an unread count. The label announces the count for screen readers.
API
<IconBadge icon count? dot? aria-label onClick? />Get it
Already in every copy of the web kit:
import { IconBadge } from '@/components/kit/icon-badge';Details
- Exports
IconBadge- Packages
- cn@^0.5.2, lucide-react@^1.52.0
- Also searched as
- notification, bell, cart, unread count, icon button
- Registry JSON
- /r/web/icon-badge.json
Agents: the whole registry is at /llms.txt.