UNPKG

@ansible/ansible-ui-framework

Version:

A framework for building applications using PatternFly.

18 lines (17 loc) 949 B
import { ReactElement, ReactNode } from 'react'; import { FieldPath, FieldValues, Validate, ValidationRule } from 'react-hook-form'; export type PageFormSwitchProps<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = { id?: string; name: TFieldName; label?: string; labelHelpTitle?: string; labelHelp?: string | string[] | ReactNode; isRequired?: boolean; additionalControls?: ReactElement; helperText?: string; pattern?: ValidationRule<RegExp>; validate?: Validate<string, TFieldValues> | Record<string, Validate<string, TFieldValues>>; autoFocus?: boolean; labelOn?: string; }; export declare function PageFormSwitch<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: PageFormSwitchProps<TFieldValues, TFieldName>): import("react/jsx-runtime").JSX.Element;