Skip to content

Latest commit

 

History

History
92 lines (49 loc) · 1.27 KB

MainButtonProps.md

File metadata and controls

92 lines (49 loc) · 1.27 KB

@vkruglikov/react-telegram-web-app / MainButtonProps

Interface: MainButtonProps

The props type of MainButton.

Table of contents

Properties

Properties

color

Optional color: string

Current button color.

Default Value

Set to themeParams.button_color by default


disabled

Optional disabled: boolean

The button disable state.

Default Value

Set to false y defaults


onClick

Optional onClick: () => void

Type declaration

▸ (): void

The button press event handler

Returns

void


progress

Optional progress: boolean

The button progress state indicator.

Default Value

Set to false by default


text

Optional text: string

Current button text

Default Value

Set to CONTINUE by default


textColor

Optional textColor: string

Current button text color

Default Value

Set to themeParams.button_text_color by default