Skip to main content

IconComponent

The shape of an icon component such as a Phosphor icon. Callers import the icon by name from @phosphor-icons/react and pass it in.

This is a type alias exported by @mapcairn/map, checked against version 0.2.0.

Signature​

import type { IconComponent } from "@mapcairn/map";

type IconComponent = ComponentType<SVGProps<SVGSVGElement> & {
size?: number | string;
weight?: "thin" | "light" | "regular" | "bold" | "fill" | "duotone";
}>;

Source: packages/map/src/ui/Icon/Icon.tsx:10