React Native MantineData display

Indicator

Notification dot indicator

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

Usage

import { Indicator, Text } from 'react-native-mantine';

<Indicator label="new" color="red" size="md" position="top-end" withBorder>
  <Text style={{ padding: 16 }}>Content with indicator</Text>
</Indicator>

Props

PropTypeDefaultDescription
colorMantineColor'red'Indicator color from theme
sizeMantineSize | number'md'Indicator size
radiusMantineNumberSize'xl'Indicator border radius
withBorderbooleanfalseIf true, indicator will have a border
position'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'top-center' | 'bottom-center' | 'middle-start' | 'middle-end' | 'middle-center''top-end'Indicator position
offsetnumber0Indicator offset
labelReact.ReactNodeIndicator label
disabledbooleanfalseDisable indicator
inlinebooleanfalseIf true, only the indicator is rendered without wrapping children
processingbooleanfalseMarks the indicator as processing (accepted for Mantine parity, no visual effect yet)
withPulsebooleanfalseIf true, indicator will have a pulsing animation
childrenReact.ReactNodeChildren wrapped by indicator
styleanyAdditional styles
testIDstringTest identifier used by testing frameworks

Source on GitHub · npm