@workday/canvas-kit-react
Version:
The parent module that contains all Workday Canvas Kit React components
27 lines • 983 B
TypeScript
/**
* Adds the necessary props to an `Input` component.
* Used by the FormField.Input subcomponent and other input type components
*/
export declare const useFormFieldInput: import("@workday/canvas-kit-react/common").BehaviorHook<{
state: {
id: string;
error: "error" | "alert" | undefined;
isRequired: boolean;
orientation: "horizontal" | "vertical" | "horizontalEnd" | "horizontalStart";
};
events: {};
}, {
readonly required: true | undefined;
readonly 'aria-invalid': true | undefined;
readonly 'aria-describedby': string | undefined;
/**
* Provide an `aria-labelledby` for fields that need access to `label` directly
*/
readonly 'aria-labelledby': string | undefined;
/**
* Provide an `id` to link the input via the `for` attribute on a `label`
*/
readonly id: string | undefined;
readonly error: "error" | "alert" | undefined;
}>;
//# sourceMappingURL=useFormFieldInput.d.ts.map