use-uncontrolled
Manage state of both controlled and uncontrolled components
Import
Source
Docs
Package
Usage
Hook allows you to manage state for both controlled and uncontrolled components:
In the example above rule
function is used to determine with value should be used initially:
Now you can use your component as controlled and uncontrolled input:
TypeScript
Set value type
By default hook will set type automatically, but you can provide your own type:
Definition
Feedback
Your feedback is most valuable contribution to the project, please share how you use Mantine, what features are missing and what is done good
Leave feedback