@slashid/react
Version:
React SDK for the /id platform
10 lines • 796 B
TypeScript
import { fontFamilyRegExp, hexValueRegExp, pixelValueRegExp, supportedFonts } from "./css-sanitisation";
export { fontFamilyRegExp, hexValueRegExp, pixelValueRegExp, supportedFonts };
export declare const validate: (input: string | number, regexp: RegExp) => boolean;
export declare const pxValidator: (input: string | number) => boolean;
export declare const hexValidator: (input: string | number) => boolean;
export declare const rgbaValidator: (input: string | number) => boolean;
export declare const exactValidator: <T extends string | number>(values: T[]) => (input: T) => boolean;
export declare const fontFamilyValidator: (input: string | number | (string | number)[]) => boolean;
export declare const urlValidator: (input: string) => boolean;
//# sourceMappingURL=css-validation.d.ts.map