Skip to content

Badge

Types Primitives

Slot Primitives

Demo


Shows a badge or a badge-like component.

Installation

Terminal window
npx @react-native-reusables/cli@latest add badge

Usage

import { Badge } from '~/components/ui/badge';
import { Text } from '~/components/ui/text';
function Example() {
return (
<Badge>
<Text>Default</Text>
</Badge>
);
}

Props

Badge

Extends View props

PropTypeNote
asChildboolean(optional)
variant’default’ | ‘secondary’ | ‘destructive’ | ‘outline’(optional)