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

Function Icon

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

Source from the content-addressed store, hash-verified

26}));
27const iconMap = Object.fromEntries(iconList.map(item => [item.id, item.icon]));
28export const Icon = ({icon}) => createElement(iconMap[icon]);
29
30const itemStyle = style({
31 ...focusRing(),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected