React Native MantineData display

Badge

Status badge with color variants

Import: import { Badge } from 'react-native-mantine';

Usage

import { Badge } from 'react-native-mantine';

<Badge
  variant="filled"
  color="blue"
  size="md"
>
  New
</Badge>

Props

PropTypeDefaultDescription
colorMantineColor"blue"Badge color from theme (e.g., "blue", "red", "green", "orange", "grape")
variant'filled' | 'light' | 'outline' | 'dot'"light"Controls badge appearance - filled (solid background), light (subtle background), outline (border only), or dot (with colored dot indicator)
size'xs' | 'sm' | 'md' | 'lg' | 'xl'"md"Badge size that controls font size, height, and padding
radiusnumber | "xs" | "sm" | "md" | "lg" | "xl""xl"Key of theme.radius or any valid number to set border-radius
fullWidthbooleanfalseSets badge width to 100% of parent element
leftSectionReact.ReactNodeSection displayed on the left side of badge (e.g., icon or custom component)
rightSectionReact.ReactNodeSection displayed on the right side of badge (e.g., icon or custom component)
childrenReact.ReactNodeBadge label content, usually text but can be any React node
withTextWrapperbooleantrueControls whether children are automatically wrapped in a Text component
styleViewStyleAdditional styles to apply to the badge container

Source on GitHub · npm