Mobile › Display

Badge

A small status pill such as New, Paid or Failed.

Installation

npx expo install plankui-mobile react-native-safe-area-context expo-haptics

Usage

import { Badge } from "plankui-mobile";

<Badge>New</Badge>
<Badge tone="success">Paid</Badge>
<Badge tone="warning">Pending</Badge>
<Badge tone="danger">Failed</Badge>
<Badge tone="neutral">Draft</Badge>

iOS and Android

iOS: A tinted rounded pill with a 12 pt semibold label.

Android: The same pill with Material's label size.

API reference

PropTypeDefaultDescription
childrenstringThe label.
tone"accent" | "success" | "warning" | "danger" | "neutral""accent"Colour.