@ucloud-fe/react-components
Version:
UCloud react components
30 lines (29 loc) • 874 B
TypeScript
export default SvgIcon;
/**
* @private
* 内部使用的一些图标,后续可能会变更,不建议直接使用
*/
declare class SvgIcon extends React.PureComponent<any, any, any> {
static propTypes: {
/** 图标类型 */
type: PropTypes.Validator<string>;
/** 图标颜色,值为 css color 支持属性值 */
color: PropTypes.Requireable<string>;
/** 是否旋转 */
spin: PropTypes.Requireable<boolean>;
/** 图标的尺寸大小 */
size: PropTypes.Requireable<string>;
};
static defaultProps: {
size: string;
};
constructor(props: any);
constructor(props: any, context: any);
render(): JSX.Element;
}
declare namespace SvgIcon {
export { IconType as Type };
}
import React from "react";
import PropTypes from "prop-types";
declare const IconType: string[];