(props: IconProps)
| 59 | } |
| 60 | |
| 61 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected