/** * API */ export interface IconAttribute extends Omit { /** * viewBox 属性允许指定一个给定的一组图形伸展以适应特定的容器元素 * @default '0 0 1024 1024' */ viewBox?: string; } interface SvgAttribute { /** * width 属性在用户坐标系统中定义了元素的一个水平长度 * @default '1em' */ width?: string; /** * height 属性在用户坐标系统中标识了一个垂直长度 * @default '1em' */ height?: string; /** * @default 'currentcolor' */ fill?: string; /** * 子元素配置 */ children?: SvgAttribute[]; /** * 子元素修飾名 */ qualifiedName?: keyof SVGElementTagNameMap; id?: string; d?: string; opacity?: string; offset?: string; x?: string; y?: string; [key: string]: string | SvgAttribute[] | undefined; } declare function icon(option: IconAttribute): SVGSVGElement; export default icon;