Open diogofscmariano opened 9 months ago
I suggest having one useFormControl
or useFormControlContext
across all products (Base UI, Joy UI, and Material UI). Which means Base UI's form control should be used in Joy UI and Material UI.
Thanks for opening the issue, we will come back to this once we finish with Material UI v6
Duplicates
Summary
Joy FormControlContext is not exposed in the library and it does not allow custom components to leverage the FormControl chain, agnostic to the component is has internally.
@mui/material, @mui/base and @mui/material-next expose it, either via useFormControl or useFormControlContext, but @mui/joy does not.
Motivation
This can be a good feature to make all libraries consistent in the same feature set for the FormControl component. Right now, in joy is it not possible to leverage the FormControl component with a custom Form element.
Search keywords: