UNPKG

@ansible/ansible-ui-framework

Version:

A framework for building applications using PatternFly.

16 lines (15 loc) 967 B
import { CheckboxProps } from '@patternfly/react-core'; import { ReactNode } from 'react'; import { FieldPath, FieldValues, Validate } from 'react-hook-form'; export type PageFormCheckboxProps<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = { id?: string; name: TFieldName; validate?: Validate<boolean, TFieldValues> | Record<string, Validate<boolean, TFieldValues>>; labelHelpTitle?: string; labelHelp?: string | string[] | ReactNode; label?: string; defaultValue?: boolean; enableReset?: boolean; className?: string; } & Pick<CheckboxProps, 'description' | 'readOnly' | 'isDisabled' | 'isRequired'>; export declare function PageFormCheckbox<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: PageFormCheckboxProps<TFieldValues, TFieldName>): import("react/jsx-runtime").JSX.Element;