UNPKG

choerodon-ui

Version:

An enterprise-class UI design language and React-based implementation

24 lines (23 loc) 879 B
import React, { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react'; export interface IconBaseProps extends React.HTMLProps<HTMLSpanElement> { spin?: boolean; rotate?: number; } export interface CustomIconComponentProps { width: string | number; height: string | number; fill: string; viewBox?: string | undefined; className?: string; style?: React.CSSProperties | undefined; } export interface IconComponentProps extends IconBaseProps { viewBox?: string | undefined; component?: React.ComponentType<CustomIconComponentProps | React.SVGProps<SVGSVGElement>>; ariaLabel?: React.AriaAttributes['aria-label']; } export interface IIcon extends ForwardRefExoticComponent<PropsWithoutRef<IconComponentProps> & RefAttributes<HTMLSpanElement>> { __C7N_ICON?: boolean; } declare const Icon: IIcon; export default Icon;