Skip to content

Commit 141d8a2

Browse files
author
Tomasz John
committed
- fix: new interface definition
1 parent ed04350 commit 141d8a2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/CIcon.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import React, { HTMLAttributes, FC, useState, useMemo } from 'react'
1+
import React, { DOMAttributes, FC, useState, useMemo } from 'react'
22
import classNames from 'classnames'
33
import './CIcon.css'
44

5-
export interface CIconProps extends HTMLAttributes< SVGSVGElement | HTMLImageElement > {
5+
export interface CIconProps extends DOMAttributes<SVGSVGElement|HTMLImageElement> {
66
/**
77
* A string of all className you want applied to the component. [docs]
88
*/
@@ -35,6 +35,8 @@ export interface CIconProps extends HTMLAttributes< SVGSVGElement | HTMLImageEle
3535
* Title tag content. [docs]
3636
*/
3737
title?: string
38+
width?: string
39+
height?: string
3840
}
3941

4042
let warned = {}

0 commit comments

Comments
 (0)