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

Function Example

docs/examples/column/variantBasic.tsx:3–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { Box, Column, Flex, Text } from 'gestalt';
2
3export default function Example() {
4 return (
5 <Flex alignItems="center" height="100%" justifyContent="center" width="100%">
6 {Array(12)
7 // @ts-expect-error - TS2554 - Expected 1-3 arguments, but got 0.
8 .fill()
9 .map((_, i) => (
10 // eslint-disable-next-line react/no-array-index-key
11 <Column key={i} span={1}>
12 <Box color="secondary" padding={1}>
13 <Box color="default" paddingY={2}>
14 <Text align="center">
15 <code>span</code>
16 <br />
17 <code>= 1</code>
18 </Text>
19 </Box>
20 </Box>
21 </Column>
22 ))}
23 </Flex>
24 );
25}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected