Guaxu Docs
Preparing search index...
guaxu-react-forms
useGuaxuForm
Function useGuaxuForm
useGuaxuForm
<
T
extends
FormData
>
(
__namedParameters
:
{
defaultValues
?:
DefaultValues
<
T
>
}
,
)
:
{
form
:
{
Checkbox
:
(
props
:
CheckboxProps
<
T
>
)
=>
Element
;
Checklist
:
(
props
:
ChecklistProps
<
T
>
)
=>
Element
;
DatePicker
:
<
K
extends
string
>
(
props
:
DatePickerProps
<
T
,
K
>
)
=>
Element
;
Form
:
(
props
:
Omit
<
FormProps
<
T
>
,
"methods"
>
)
=>
Element
;
MaskedTextInput
:
(
props
:
MaskedTextInputProps
<
T
>
)
=>
Element
;
RadioButton
:
<
T
extends
FormData
,
K
extends
string
>
(
props
:
RadioButtonProps
<
T
,
K
>
,
)
=>
Element
;
RadioList
:
(
props
:
RadioListProps
<
T
>
)
=>
Element
;
Select
:
<
K
extends
string
>
(
props
:
SelectProps
<
T
,
K
>
)
=>
Element
;
TextInput
:
(
props
:
CommonTextInputProps
<
T
>
)
=>
Element
;
}
;
getValues
:
UseFormGetValues
<
T
>
;
setValues
:
UseFormSetValue
<
T
>
;
watch
:
UseFormWatch
<
T
>
;
}
Type Parameters
T
extends
FormData
Parameters
__namedParameters
:
{
defaultValues
?:
DefaultValues
<
T
>
}
Returns
{
form
:
{
Checkbox
:
(
props
:
CheckboxProps
<
T
>
)
=>
Element
;
Checklist
:
(
props
:
ChecklistProps
<
T
>
)
=>
Element
;
DatePicker
:
<
K
extends
string
>
(
props
:
DatePickerProps
<
T
,
K
>
)
=>
Element
;
Form
:
(
props
:
Omit
<
FormProps
<
T
>
,
"methods"
>
)
=>
Element
;
MaskedTextInput
:
(
props
:
MaskedTextInputProps
<
T
>
)
=>
Element
;
RadioButton
:
<
T
extends
FormData
,
K
extends
string
>
(
props
:
RadioButtonProps
<
T
,
K
>
,
)
=>
Element
;
RadioList
:
(
props
:
RadioListProps
<
T
>
)
=>
Element
;
Select
:
<
K
extends
string
>
(
props
:
SelectProps
<
T
,
K
>
)
=>
Element
;
TextInput
:
(
props
:
CommonTextInputProps
<
T
>
)
=>
Element
;
}
;
getValues
:
UseFormGetValues
<
T
>
;
setValues
:
UseFormSetValue
<
T
>
;
watch
:
UseFormWatch
<
T
>
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Guaxu Docs
Loading...