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

Function IconItem

packages/dev/s2-docs/src/IconPicker.tsx:153–169  ·  view source on GitHub ↗
({item})

Source from the content-addressed store, hash-verified

151}
152
153function IconItem({item}) {
154 let Icon = item.icon;
155 let ref = useRef(null);
156 // oxlint-disable react/react-compiler
157 return (
158 <ListBoxItem
159 id={item.id}
160 value={item}
161 textValue={item.id}
162 className={itemStyle}
163 ref={ref}
164 style={pressScale(ref)}>
165 <Icon />
166 </ListBoxItem>
167 );
168 // oxlint-enable react/react-compiler
169}

Callers

nothing calls this directly

Calls 1

pressScaleFunction · 0.90

Tested by

no test coverage detected