UNPKG

preact-icomoon

Version:

It makes it very simple to use SVG icons in your Preact projects.

27 lines (26 loc) 710 B
declare type IconSetItem = { properties: { name: string; }; icon: { paths: string[]; attrs?: Object[]; width?: number | string; }; }; declare type IconSet = { icons: IconSetItem[]; }; export interface IconProps extends SVGElement { icon: string; size?: string | number; title?: string; disableFill?: boolean; removeInlineStyle?: boolean; } interface IcoMoonProps extends IconProps { iconSet: IconSet; } declare const IcoMoon: ({ iconSet, icon, size, title, disableFill, removeInlineStyle, ...props }: IcoMoonProps) => import("preact").VNode<any>; export declare const iconList: (iconSet: IconSet) => string[]; export default IcoMoon;