UNPKG

@appello/web-ui

Version:

Web ui library for a better development experience

44 lines (43 loc) 1.35 kB
import React from 'react'; export interface RegisterIconName { } declare const baseIcons: { readonly bell: "string"; readonly add: "string"; readonly calendar: "string"; readonly eye: "string"; readonly close: "string"; readonly document: "string"; readonly magnifier: "string"; readonly polygon: "string"; readonly downArrow: "string"; readonly eyeCrossed: "string"; readonly check: "string"; readonly upload: "string"; }; export type IconName = RegisterIconName extends { icons: infer TRouter extends string; } ? TRouter : keyof typeof baseIcons; export interface IconProps { name: IconName; className?: string; width?: string | number; height?: string | number; size?: string | number; color?: string; title?: string; desc?: string; loading?: () => JSX.Element; fallback?: () => JSX.Element; evalScripts?: 'always' | 'once' | 'never'; httpRequestWithCredentials?: boolean; renumerateIRIElements?: boolean; beforeInjection?: (svg: SVGElement) => void; afterInjection?: (svg: SVGElement) => void; useRequestCache?: boolean; wrapper?: 'div' | 'span'; onClick?: (event: React.MouseEvent<HTMLElement | SVGElement>) => void; onError?: (error: unknown) => void; } export declare const Icon: React.FC<IconProps>; export {};