Function: getIconSize()
function getIconSize(
size:
| "lg"
| "md"
| "sm"
| "xs"
| "xl"
| "xxl"
): number;
Defined in: src/utils/icons.ts:321
Get numeric pixel value for an icon size.
Parametersโ
sizeโ
"lg" | "md" | "sm" | "xs" | "xl" | "xxl"
Icon size key.
Returnsโ
number
Pixel value.
Exampleโ
<Icon size={getIconSize("md")} />