Icon.d.ts 395 B

123456789
  1. import * as React from 'react';
  2. import type { RenderIconInfo, RenderIconType } from './interface';
  3. export interface IconProps {
  4. icon?: RenderIconType;
  5. props: RenderIconInfo;
  6. /** Fallback of icon if provided */
  7. children?: React.ReactElement;
  8. }
  9. export default function Icon({ icon, props, children }: IconProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;