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

Function IconItem

packages/dev/s2-docs/src/IconPicker.tsx:153–167  ·  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 return (
157 <ListBoxItem
158 id={item.id}
159 value={item}
160 textValue={item.id}
161 className={itemStyle}
162 ref={ref}
163 style={pressScale(ref)}>
164 <Icon />
165 </ListBoxItem>
166 );
167}

Callers

nothing calls this directly

Calls 1

pressScaleFunction · 0.90

Tested by

no test coverage detected