Expo App UIExpo App UI
Components

Badge

A compact label for status, counts, and tags. Supports solid, outline, and subtle variants with semantic tones.

Installation

npx expo-app-ui add badge

Usage

import Badge from "@/components/ui/badge";

<Badge label="New" tone="primary" />
<Badge label="Beta" variant="outline" tone="warning" />
<Badge dot tone="success" />

Props

PropTypeDefaultDescription
labelstring-Text shown inside the badge
childrenReactNode-Alternative to label
variant'solid' | 'outline' | 'subtle''solid'Visual style
tone'neutral' | 'primary' | 'success' | 'warning' | 'danger''neutral'Semantic color tone
size'sm' | 'md' | 'lg''md'Badge size
roundedbooleantruePill shape vs square
dotbooleanfalseRender only a colored dot
styleStyleProp<ViewStyle>-Container style override
textStyleStyleProp<TextStyle>-Text style override
accessibilityLabelstring-Screen-reader label

Accessibility

  • Renders with accessibilityRole="text" (or image for dot)
  • accessibilityLabel defaults to label

On this page

Find this useful?

Buy me a coffee