Guaxu Docs
    Preparing search index...

    Function useGuaxuForm

    • Type Parameters

      • TInput extends FormData
      • TOutput extends FormData = TInput

      Parameters

      • __namedParameters: {
            defaultValues?: DefaultValues<TInput>;
            schema?: ZodType<TOutput, any, TInput>;
        }

      Returns {
          form: {
              Checkbox: (props: CheckboxProps<TInput>) => Element;
              Checklist: (props: ChecklistProps<TInput>) => Element;
              DatePicker: <K extends string>(
                  props: DatePickerProps<TInput, K>,
              ) => Element;
              Form: (props: Omit<FormProps<TInput, TOutput>, "methods">) => Element;
              MaskedTextInput: (props: MaskedTextInputProps<TInput>) => Element;
              RadioButton: <T extends FormData, K extends string>(
                  props: RadioButtonProps<T, K>,
              ) => Element;
              RadioList: (props: RadioListProps<TInput>) => Element;
              Select: <K extends string>(props: SelectProps<TInput, K>) => Element;
              TextInput: (props: CommonTextInputProps<TInput>) => Element;
          };
          getValues: UseFormGetValues<TInput>;
          setValues: UseFormSetValue<TInput>;
          watch: UseFormWatch<TInput>;
      }