React Native MantineButtons

UnstyledButton

Accessible button without default styles

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

Usage

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

<UnstyledButton
  onPress={() => console.log('Clicked')}
  style={{ padding: 16 }}
>
  <Text>Custom Button</Text>
</UnstyledButton>

Props

PropTypeDefaultDescription
onPress(payload: any) => voidCallback function fired when button is pressed
disabledbooleanfalseIf true, disables button interaction and touch events
activeOpacitynumber0.7Determines opacity of button when pressed. Value between 0 and 1
variantstringOptional variant identifier for custom styling (currently not implemented in default styles)
childrenReact.ReactNodeButton content, typically Text or View components
styleViewStyleCustom styles to apply to the button container. Use this to style your button as needed

Source on GitHub · npm