@metamask/design-system-react-native
Version:
22 lines • 791 B
text/typescript
import type { IconProps } from "./Icon.types.mjs";
/**
* Generates a Tailwind class name for the icon based on color and optional additional classes.
*
* @param color - The color of the icon, mapped to a Tailwind class.
* @param size - Different sizes map to specific pixel dimensions
* @param twClassName - Additional Tailwind class names for customization.
* @returns A combined string of class names.
*
* Example:
* ```
* const classNames = generateIconClassNames({
* color: IconColor.IconDefault,
* size: IconSize.Md
* });
*
* console.log(classNames);
* // Output: "text-icon-default w-[20px] h-[20px]"
* ```
*/
export declare const generateIconClassNames: ({ color, size, twClassName, }: Partial<IconProps>) => string;
//# sourceMappingURL=Icon.utilities.d.mts.map