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

Function IconSizes

packages/dev/s2-docs/src/IconSizes.tsx:36–56  ·  view source on GitHub ↗
({sizes}: {sizes: SizeInfo[]})

Source from the content-addressed store, hash-verified

34};
35
36export function IconSizes({sizes}: {sizes: SizeInfo[]}) {
37 return (
38 <div className={style({display: 'flex', flexWrap: 'wrap', gap: 16, alignItems: 'end'})}>
39 {sizes.map(({size, pixels}) => (
40 <div
41 key={size}
42 className={style({
43 display: 'flex',
44 flexDirection: 'column',
45 alignItems: 'center',
46 gap: 4
47 })}>
48 {renderCheckMark(size)}
49 <span className={labelStyle({size})}>
50 {size} ({pixels})
51 </span>
52 </div>
53 ))}
54 </div>
55 );
56}

Callers

nothing calls this directly

Calls 1

renderCheckMarkFunction · 0.85

Tested by

no test coverage detected