Represents the properties for the Button component.

interface IButton {
    id: string;
    onClick: (() => void);
    text: string;
    title: string;
}

Properties

Properties

id: string

The unique id for the Button.

onClick: (() => void)

The function to be executed when the Button is clicked.

Type declaration

    • (): void
    • Returns void

Function

text: string

The text to be displayed in the Button.

title: string

The title for the Button.