React Native MantineData display

Pill

Removable tag pill

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

Usage

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

<Pill
  withRemoveButton
  onRemove={() => removeTag('react')}
  size="md"
>
  React
</Pill>

// With Group
<Pill.Group gap="xs">
  <Pill>React</Pill>
  <Pill>React Native</Pill>
  <Pill disabled>Disabled</Pill>
</Pill.Group>

Props

PropTypeDefaultDescription
children (required)React.ReactNodePill components to be rendered within the group
size'xs' | 'sm' | 'md' | 'lg' | 'xl'Controls size of all pills inside the group
gapnumber | "xs" | "sm" | "md" | "lg" | "xl""xs"Gap between pills
disabledbooleanIf set, all pills inside the group are disabled
styleViewStyleAdditional styles to apply to the group container

Source on GitHub · npm