zarm
Version:
基于 React 的移动端UI库
15 lines (14 loc) • 643 B
TypeScript
import type { IconProps as BaseIconProps } from '@zarm-design/icons';
import { Icon as BaseIcon } from '@zarm-design/icons';
import * as React from 'react';
import type { HTMLProps } from '../utils/utilityTypes';
export interface IconCssVars {
'--font-size'?: React.CSSProperties['fontSize'];
'--color'?: React.CSSProperties['color'];
}
export declare type IconProps = Omit<BaseIconProps, 'prefixCls'> & HTMLProps<IconCssVars>;
interface CompoundedComponent extends React.ForwardRefExoticComponent<IconProps> {
createFromIconfont: typeof BaseIcon.createFromIconfont;
}
declare const Icon: CompoundedComponent;
export default Icon;