Skip to main content

ImageProps

@akhaled01/voidDocs


@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

types/jsx.d.ts:69


className?

optional className: string

A string representing one or more CSS classes to be applied to the element.

Inherited from

CommonProps.className

Defined in

types/jsx.d.ts:23


id?

optional id: string

A string representing the unique ID of the element.

Inherited from

CommonProps.id

Defined in

types/jsx.d.ts:28


src

src: string

The image file source URL.

Defined in

types/jsx.d.ts:64


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

Inherited from

CommonProps.style

Defined in

types/jsx.d.ts:34