Skip to content

Commit 635de93

Browse files
committed
fix(CImage): update interface
1 parent 9713f25 commit 635de93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/image/CImage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import React, { forwardRef, HTMLAttributes } from 'react'
1+
import React, { forwardRef, ImgHTMLAttributes } from 'react'
22
import PropTypes from 'prop-types'
33
import classNames from 'classnames'
44

5-
export interface CImageProps extends HTMLAttributes<HTMLImageElement> {
5+
export interface CImageProps extends ImgHTMLAttributes<HTMLOrSVGImageElement> {
66
/**
77
* Set the horizontal aligment.
88
*/

0 commit comments

Comments
 (0)