UNPKG

@reusable-ui/icon

Version:

An icon set component for React app.

36 lines (35 loc) 1.25 kB
export type IconFileExpression = `${string}.${string}` | (string & {}); export type IconImageFile = IconFileExpression | { name: IconFileExpression; ratio?: `${string}/${string}`; }; export declare const iconConfig: { font: { /** * A `url directory` pointing to the collection of the icon's fonts. * It's the `front-end url`, not the physical path on the server. */ path: string; /** * A list of icon's fonts with extensions. * The order does matter. Place the most preferred file on the first. */ files: string[]; /** * The css style of icon-font to be loaded. */ style: import("@cssfn/css-types").CssRule; }; image: { /** * A `url directory` pointing to the collection of the icon's images. * It's the `front-end url`, not the physical path on the server. */ path: string; /** * A list of icon's images with extensions. * The order doesn't matter, but if there are any files with the same name but different extensions, the first one will be used. */ files: IconImageFile[]; }; };