MindeesUI
ComponentsDisplay

Pill

A small rounded status label in six semantic tones, optionally with a leading node and tap handler.

Pill is a compact, fully rounded label for statuses and counts. It comes in six tones — neutral, primary, success, warning, danger, and info — each pairing a subtle background with a matching foreground. Add a leading node for a dot or icon, and onPress to make it interactive.

Import

import { Pill } from '@mindees/ui';

Usage

<Pill tone="success">Active</Pill>

Props

PropTypeDefaultDescription
tone'neutral' | 'primary' | 'success' | 'warning' | 'danger' | 'info''neutral'Colour treatment of the pill.
leadingReactNodeOptional leading node (a small icon or dot).
onPress() => voidTap handler; renders the pill as a button.
childrenReactNodePill label content.
styleStyleProp<ViewStyle>Style overrides for the pill.

Inherits the remaining ViewProps (except style).

Accessibility

A pill with onPress renders as a button; a static pill uses accessibilityRole="text". Tone is conveyed by colour, so keep the label text meaningful on its own (for example Active, not just a coloured dot).

On this page