Skip to main content

@microsoft/fast-colors > isColorStringHexRGB

isColorStringHexRGB() function

Test if a color matches #RRGGBB or #RGB

Signature:
export declare function isColorStringHexRGB(raw: string): boolean;

Parameters

ParameterTypeDescription
rawstring
Returns:

boolean