@ucloud-fe/react-components
Version:
UCloud react components
22 lines (21 loc) • 701 B
TypeScript
export default SvgIconWrap;
declare class SvgIconWrap extends React.PureComponent<any, any, any> {
static propTypes: {
/** 图标颜色,值为 css color 支持属性值 */
color: PropTypes.Requireable<string>;
/** 是否旋转 */
spin: PropTypes.Requireable<boolean>;
/** 图标的尺寸大小 */
size: PropTypes.Requireable<string>;
/** icon */
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
};
static defaultProps: {
size: string;
};
constructor(props: any);
constructor(props: any, context: any);
render(): JSX.Element;
}
import React from "react";
import PropTypes from "prop-types";