MCPcopy Create free account
hub / github.com/arctic-cli/interface / Icon

Function Icon

packages/ui/src/components/icon.tsx:61–79  ·  view source on GitHub ↗
(props: IconProps)

Source from the content-addressed store, hash-verified

59}
60
61export function Icon(props: IconProps) {
62 const [local, others] = splitProps(props, ["name", "size", "class", "classList"])
63 return (
64 <div data-component="icon" data-size={local.size || "normal"}>
65 <svg
66 data-slot="icon-svg"
67 classList={{
68 ...(local.classList || {}),
69 [local.class ?? ""]: !!local.class,
70 }}
71 fill="none"
72 viewBox="0 0 20 20"
73 innerHTML={icons[local.name as keyof typeof icons]}
74 aria-hidden="true"
75 {...others}
76 />
77 </div>
78 )
79}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected