MCPcopy Create free account
hub / github.com/pinterest/gestalt / Example

Function Example

docs/examples/list/nestingExample1.tsx:3–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { Box, List, Text } from 'gestalt';
2
3export default function Example() {
4 return (
5 <Box alignItems="center" display="flex" height="100%" justifyContent="center" padding={8}>
6 <List label={<Text weight="bold">Unordered nested</Text>} type="unordered">
7 <List.Item text="List item text">
8 <List.Item text="List item text">
9 <List.Item text="List item text">
10 <List.Item text="List item text">
11 <List.Item text="List item text">
12 <List.Item text="List item text" />
13 </List.Item>
14 </List.Item>
15 </List.Item>
16 </List.Item>
17 </List.Item>
18 </List>
19 </Box>
20 );
21}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected