/** * The props type of {@link MainButton | `MainButton`}. */ export interface MainButtonProps { /** * Current button text * @defaultValue Set to `CONTINUE` by default */ text?: string; /** * The button progress state indicator. * @defaultValue Set to `false` by default */ progress?: boolean; /** * Just an alias on the {@link MainButtonProps.disabled} * @deprecated Use {@link MainButtonProps.disabled} instead, will be removed * @ignore */ disable?: boolean; /** * The button disable state. * @defaultValue Set to `false` y defaults */ disabled?: boolean; /** The button press event handler */ onClick?: () => void; /** * Current button color. * @defaultValue Set to themeParams.button_color by default */ color?: string; /** * Current button text color * @defaultValue Set to themeParams.button_text_color by default */ textColor?: string; } /** * Renders a {@link telegram!MainButton} component in React app as {@link react!Component} * * ```tsx * import { MainButton } from "@vkruglikov/react-telegram-web-app"; * * console.log('Hello, I am button!')} * /> * ``` * @param props * @group React Components */ declare const MainButton: ({ text, progress, disable: disable_old, disabled: disable_new, color, textColor, onClick, }: MainButtonProps) => null; export default MainButton;