Skip to main content

CommonProps

@akhaled01/voidDocs


@akhaled01/void / types/jsx / CommonProps

Interface: CommonProps

CommonProps defines the general properties that can be applied to most HTML elements.

Extended by

Properties

className?

optional className: string

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

Defined in

types/jsx.d.ts:23


id?

optional id: string

A string representing the unique ID of the element.

Defined in

types/jsx.d.ts:28


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

Defined in

types/jsx.d.ts:34