MCPcopy Create free account
hub / github.com/adobe/react-spectrum / S2StyleProperties

Function S2StyleProperties

packages/dev/s2-docs/src/S2StyleProperties.tsx:6–28  ·  view source on GitHub ↗
({properties}: {properties: string[]})

Source from the content-addressed store, hash-verified

4const Code = ({children}) => <code className={style({font: 'code'})}>{children}</code>;
5
6export function S2StyleProperties({properties}: {properties: string[]}) {
7 return (
8 <ul
9 className={style({
10 fontSize: 'body-lg',
11 lineHeight: 'body',
12 color: 'body',
13 padding: 0,
14 listStyleType: 'none',
15 display: 'grid',
16 gridTemplateColumns: {
17 default: 'repeat(2, minmax(0, 1fr))',
18 sm: 'repeat(3, minmax(0, 1fr))'
19 }
20 })}>
21 {properties.map(property => (
22 <li key={property}>
23 <Code>{property}</Code>
24 </li>
25 ))}
26 </ul>
27 );
28}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected