UNPKG

@syncfusion/react-icons

Version:
24 lines (23 loc) 891 B
import { HTMLAttributes, SVGProps } from 'react'; /** * Type for the icon component * * @private */ export type IconComponent = React.FC<HTMLAttributes<SVGElement | HTMLElement> & SVGProps<SVGSVGElement>>; /** * Type definition for the icon creator function * Represents a function that creates a memoized icon component from an SVG path * * @param path - The SVG path data string * @returns A memoized React component that renders the icon */ type IconGenerator = (svgElements: React.ReactNode) => React.NamedExoticComponent<HTMLAttributes<SVGElement | HTMLElement> & SVGProps<SVGSVGElement>>; /** * Base icon component creator function creates a reusable icon component from an SVG path. * * @param {string} svgElements - The SVG path data string * @returns {IconComponent} A memoized React functional component */ export declare const createIcon: IconGenerator; export {};