import { GenericObject } from "@mongez/reinforcements"; import React from "react"; import { ReactiveForm } from "./ReactiveForm"; import { ShouldBeRendered } from "./ShouldBeRendered"; export type ButtonType = React.ButtonHTMLAttributes["type"]; export declare class FormButton extends ShouldBeRendered { /** * button props */ protected props: GenericObject; /** * Button component * Merge button props to be GenericObject with html button props */ protected buttonComponent: React.FC; /** * Set button content */ content(content: React.ReactNode): this; /** * Set button color */ color(color: GenericObject["color"]): this; /** * Set button variant */ variant(variant: GenericObject["variant"]): this; /** * Set button name */ name(name: string): this; /** * Set button size */ size(size: GenericObject["size"]): this; /** * Set button type */ type(type: ButtonType): this; /** * Set button full width */ fullWidth(fullWidth?: boolean): this; /** * Get button name */ getName(): any; /** * Add event when button is clicked */ onClick(callback: (reactiveForm: ReactiveForm, event: React.MouseEvent) => void): this; /** * Disable button */ disabled(disabled?: boolean): this; /** * Set button component */ component(component: React.FC): void; /** * Render as component */ asComponent(): { (): any; displayName: string; }; /** * Render the button */ render(): any; } //# sourceMappingURL=FormButton.d.ts.map