Skip to content

how to use Combobox with useForm ? #7077

Answered by rtivital
byungmin12 asked this question in Q&A
Discussion options

You must be logged in to vote

Combobox component is not an input, it should be used to create a component which it then can be integrated with useForm. To create such component:

  • For controlled form mode – the component must support value and onChange props
  • For uncontrolled form mode – the component must support defaultValue and onChange props

You can learn more on how to build custom components that support these properties by exploring Mantine components source code,

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@byungmin12
Comment options

Answer selected by byungmin12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #7053 on November 05, 2024 11:14.