import React from "react"; import { FormField } from "../../../lib"; import "./formcontrol.scss"; export type FormControlProps = FormField & { /** The direction in which to render the form. */ direction?: "v" | "h" | "vertical" | "horizontal"; /** Justification type. */ justify?: "baseline" | "stretch"; /** An error message to show. */ error?: string; /** Whether to forcefully show the error (if set), this skips the dirty check. */ forceShowError?: boolean; /** Whether to show a required indicator (*) when a field is required. */ showRequiredIndicator?: boolean; /** The required indicator (*). */ requiredIndicator?: string; /** The required (accessible) label. */ labelRequired?: string; }; /** * Renders the correct form widget (based on its props shape) along with its * label and `error` message. * @param direction * @param justify * @param error * @param forceShowError * @param showRequiredLabel * @param requiredIndicator * @param labelRequired * @param props * @constructor */ export declare const FormControl: React.FC; /** * Renders the correct component for props based on its shape. * @param props * @constructor * @private */ export declare const FormWidget: React.FC;