React Native MantineData display

Kbd

Keyboard shortcut display

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

Usage

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

<Text>
  Press <Kbd>Ctrl</Kbd> + <Kbd size="sm">C</Kbd> to copy
</Text>

Props

PropTypeDefaultDescription
sizeMantineSize'md'Kbd size
childrenReact.ReactNodeKbd content
styleanyAdditional styles
testIDstringTest identifier used by testing frameworks
withTextWrapperbooleantrueIf false, children will not be wrapped in a Text component. This is useful when the children contain non-text elements like icons or custom components.

Source on GitHub · npm