Badge
A small status indicator label for React Native.
v0.3.0NativeWindStyleSheetiOSAndroidExpo Go
Preview
Installation
npx nativra-cli add badgeWrites Badge.tsx to components/ui, rewrites imports to your aliases and records hashes in nativra.lock.json, along with 1 registry dependency. Existing files are never overwritten without asking.
Want to try it first? Open it in the playground: a real React Native project in your browser, with this item installed by the CLI.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | required | Text content displayed inside badge |
| variant | "default" | "primary" | "secondary" | "destructive" | "outline" | "default" | Semantic color treatment |
| size | "sm" | "md" | "lg" | "md" | Scale preset |
Source
Exactly what the CLI writes, before your import aliases are applied.
Dependencies
Used by
- Account Settings FlowTemplateEnterprise SaaS account, organization seats, security sessions, and billing management flow.
- Activity TimelineBlockVertical audit log and activity timeline item with status node, connector line, and timestamp metadata.
- Analytics DashboardTemplateExecutive SaaS mobile dashboard template with KPI metrics, time-range filter pills, channel breakdown bars, and recent audit activity feed.
- App HeaderBlockVersatile enterprise application navigation header with branding, back navigation, search, action buttons, notifications badge, and user avatar.
- App SidebarBlockEnterprise collapsible application navigation sidebar with grouped navigation items, active route indicators, user profile card, and footer actions.
- Chat & Messaging FlowTemplateIn-app support and customer messaging template with conversation threads, speech bubbles, and keyboard-avoiding input bar.
- eCommerce FlowTemplateProduction mobile retail and eCommerce storefront template with product catalog, search filters, detail sheet, cart, and order summary.
- Filter SheetBlockEnterprise slide-up filter sheet with multi-select category chips, price range slider, status toggles, and CTA controls.
- Fintech WalletTemplateHigh-impact mobile finance and crypto wallet screen with total balance card, quick action pills, asset allocation list, and recent transactions.
- KPI Comparison CardBlockEnterprise dual-metric comparison card featuring current vs target performance, progress indicators, and trend badges.
- Metric CardBlockReady-to-use mobile analytics KPI stat card with positive/negative trend badges.
- Mini Sparkline CardBlockExecutive KPI metric card with integrated zero-dependency trend sparkline curve.
- Notification ItemBlockInteractive mobile notification card with user avatar, timestamp, unread indicator dot, and action buttons.
- Order SummaryBlockComplete mobile e-commerce checkout invoice summary with line items, voucher discount, and checkout button.
- Payment Method CardBlockVisual credit card and digital payment method card with card brand logo, masked PAN, and default selector.
- Pricing CardBlockReady-to-use mobile subscription tier card with features list and checkout CTA.
- Product CardBlockProduct tile with image, badge, wishlist heart, name, rating, price with compare-at price, and add-to-cart.
- Settings ListBlockReady-to-use mobile settings group with switches, badges, and navigation rows.
- Stat Progress CardBlockMobile goal KPI card with target value, percent indicator, and embedded progress bar with milestone indicators.
- Team Member RowBlockEnterprise team member row with avatar, identity details, role selector pill, and action menu.
- Transaction RowBlockHigh-density enterprise financial ledger item with counterparty icon, status badge, and monetary values.
- User ProfileBlockReady-to-use mobile profile card with avatar, verified badge, stats, and actions.