ImageProps
@akhaled01/void • Docs
@akhaled01/void / types/jsx / ImageProps
Interface: ImageProps
Defines properties for the <img>
element, extending CommonProps.
Extends
Properties
alt?
optional
alt:string
Alternative text for the image.
Defined in
className?
optional
className:string
A string representing one or more CSS classes to be applied to the element.
Inherited from
Defined in
id?
optional
id:string
A string representing the unique ID of the element.
Inherited from
Defined in
src
src:
string
The image file source URL.
Defined in
style?
optional
style:object
An object representing inline CSS styles, where the keys are CSS property names and the values are the corresponding styles (either strings or numbers).
Index Signature
[key
: string
]: string
| number