ImageProps
@akhaled01/void • Docs
@akhaled01/void / types/jsx / ImageProps
Interface: ImageProps
Defines properties for the <img> element, extending CommonProps.
Extends
Properties
alt?
optionalalt:string
Alternative text for the image.
Defined in
className?
optionalclassName:string
A string representing one or more CSS classes to be applied to the element.
Inherited from
Defined in
id?
optionalid: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?
optionalstyle: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