React Native MantineTypography

List

Ordered and unordered lists

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

Usage

import { List } from 'react-native-mantine';

// Unordered list
<List>
  <List.Item>First item</List.Item>
  <List.Item>Second item</List.Item>
  <List.Item>Third item</List.Item>
</List>

// Ordered list
<List type="ordered" listStyleType="decimal">
  <List.Item>First item</List.Item>
  <List.Item>Second item</List.Item>
  <List.Item>Third item</List.Item>
</List>

Props

PropTypeDefaultDescription
childrenReact.ReactNodeItem content, usually text but can be any React node
iconReact.ReactNodeCustom icon for this specific item (overrides list-level icon)
withTextWrapperbooleantrueControls whether children are automatically wrapped in a Text component
styleViewStyleAdditional styles to apply to the list item

Source on GitHub · npm