@vkruglikov/react-telegram-web-app / MainButtonProps
The props type of MainButton
.
• Optional
color: string
Current button color.
Default Value
Set to themeParams.button_color by default
• Optional
disabled: boolean
The button disable state.
Default Value
Set to false
y defaults
• Optional
onClick: () => void
▸ (): void
The button press event handler
void
• Optional
progress: boolean
The button progress state indicator.
Default Value
Set to false
by default
• Optional
text: string
Current button text
Default Value
Set to CONTINUE
by default
• Optional
textColor: string
Current button text color
Default Value
Set to themeParams.button_text_color by default