icon.d.ts 783 B

123456789101112131415161718192021222324252627
  1. import { ForwardRefExoticComponent, RefAttributes } from 'react';
  2. export interface IconProps {
  3. focusable?: string;
  4. style?: React.CSSProperties;
  5. className?: string;
  6. extend?: IExtendProps;
  7. onClick?: React.MouseEventHandler<SVGSVGElement>;
  8. }
  9. export interface IconFulfilledProps extends IconProps {
  10. icon: IconElement;
  11. id: string;
  12. }
  13. export interface IExtendProps {
  14. colorChannel1: string;
  15. }
  16. export interface Attrs {
  17. [key: string]: any;
  18. }
  19. export interface IconElement {
  20. tag: string;
  21. attrs: Attrs;
  22. style?: React.CSSProperties;
  23. children?: IconElement[];
  24. defIds?: string[];
  25. }
  26. export type CompoundedComponent = ForwardRefExoticComponent<IconFulfilledProps & RefAttributes<SVGElement>>;
  27. export declare const IconBase: CompoundedComponent;