MCPcopy Create free account
hub / github.com/editablejs/editable / Icon

Function Icon

packages/ui/src/icon.tsx:894–906  ·  view source on GitHub ↗
({
  name,
  className,
  ...props
})

Source from the content-addressed store, hash-verified

892`
893
894export const Icon: React.FC<React.HTMLAttributes<SVGSVGElement> & Record<'name', IconName>> = ({
895 name,
896 className,
897 ...props
898}) => {
899 const IconComponent = IconMap[name]
900
901 return (
902 <IconStyles className={className}>
903 <IconComponent {...props} />
904 </IconStyles>
905 )
906}
907
908export const IconCustom: React.FC<React.HTMLAttributes<SVGSVGElement>> = ({
909 className,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…