@frontify/fondue-icons
Version:
Frontify's icon SVGs
22 lines (21 loc) • 872 B
TypeScript
import { ForwardRefExoticComponent, ReactSVG, RefAttributes, SVGProps } from 'react';
export type IconNode = [elementName: keyof ReactSVG, attrs: Record<string, string>, children?: IconNode][];
export type SVGAttributes = Partial<SVGProps<SVGSVGElement>>;
type ComponentAttributes = RefAttributes<SVGSVGElement> & SVGAttributes;
type IconSizeAsNumber = 12 | 16 | 20 | 24 | 32;
/**
* @deprecated Use a string or number instead
*/
export declare enum IconSize {
Size12 = "Size12",
Size16 = "Size16",
Size20 = "Size20",
Size24 = "Size24",
Size32 = "Size32"
}
export type FondueIconProps = ComponentAttributes & {
size?: `${IconSizeAsNumber}` | IconSizeAsNumber | IconSize;
};
export type FondueIcon = ForwardRefExoticComponent<FondueIconProps>;
export declare const createFondueIcon: (iconName: string, iconNode: IconNode) => FondueIcon;
export {};