ButtonProps
@akhaled01/void • Docs
@akhaled01/void / types/jsx / ButtonProps
Interface: ButtonProps
Defines properties for the <button> element, extending CommonProps.
Extends
Properties
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
onClick()?
optionalonClick: (event) =>void
A function that gets called when the button is clicked.
Parameters
• event: MouseEvent
Returns
void
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