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

Function AIIconsPageSearch

packages/dev/s2-docs/src/AIIconSearchView.tsx:234–257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

232}
233
234export function AIIconsPageSearch() {
235 let {copiedId, handleCopyImport} = useCopyAIImport();
236
237 return (
238 <div className={style({display: 'flex', flexDirection: 'column', gap: 8})}>
239 <InfoMessage>
240 Press an item to copy its import statement. Hover or focus a tile to preview its animation.
241 See <Link href="ai-components#loaders">Loaders</Link> for more information.
242 </InfoMessage>
243 <AIIconListBox
244 items={aiIconList}
245 copiedId={copiedId}
246 onAction={handleCopyImport}
247 listBoxClassName={style({
248 height: 340,
249 width: '100%',
250 maxHeight: '100%',
251 overflow: 'auto',
252 scrollPaddingY: 4
253 })}
254 />
255 </div>
256 );
257}

Callers

nothing calls this directly

Calls 1

useCopyAIImportFunction · 0.85

Tested by

no test coverage detected