React Native MantineData display

Card

Content card with sections

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

Usage

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

<Card shadow="sm" p="lg" radius="md" withBorder>
  <Card.Section withBorder inheritPadding>
    <Text style={{ fontWeight: '600' }}>Card Title</Text>
  </Card.Section>

  <Card.Section padding="md">
    <Text>Card content goes here</Text>
  </Card.Section>
</Card>

Props

PropTypeDefaultDescription
paddingSpacingValue"md"Card padding - can be theme spacing key (xs, sm, md, lg, xl) or a number in pixels
childrenReact.ReactNodeCard content, can include Card.Section components or any other React nodes
shadow'xs' | 'sm' | 'md' | 'lg' | 'xl'Card shadow from theme.shadows (inherited from Paper)
radiusnumber | "xs" | "sm" | "md" | "lg" | "xl""sm"Key of theme.radius or number to set border-radius in pixels (inherited from Paper)
withBorderbooleanfalseAdd border with theme color (inherited from Paper)
styleViewStyleAdditional styles to apply to the card container

Source on GitHub · npm