React Native MantineMiscellaneous

VisuallyHidden

Hide content visually, keep it for screen readers

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

Usage

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

<Group spacing={8}>
  <Text size="xl" weight="700">4.8 / 5</Text>

  <VisuallyHidden accessibilityLabel="Rated 4.8 out of 5 stars">
    <Text>Rated 4.8 out of 5 stars</Text>
  </VisuallyHidden>
</Group>

Props

PropTypeDefaultDescription
children (required)React.ReactNodeContent hidden from the screen but announced by screen readers
accessibilityLabelstringAccessibility label announced by screen readers
styleViewStyleAdditional styles to apply to the hidden container

Source on GitHub · npm