[base-ui][FormControl] Export FormControlOwnerState
type from FormControl
#41286
Labels
bug 🐛
Something doesn't work
component: FormControl
The React component
package: base-ui
Specific to @mui/base
Steps to reproduce
Link to live example: (required)
https://codesandbox.io/p/sandbox/kind-shockley-sxl7d8?file=%2Fsrc%2FDemo.tsx%3A21%2C1
Steps:
FormControlOwnerState
from@mui/base/FormControl
or@mui/base
Current behavior
The type is not available to import unless you drill into
@mui/base/FormControl/FormControl.types
Expected behavior
The
*OwnerState
type should be exported from the index file as it is with other components like Button, Input, Select, Modal, etc.Context
I need to pass a function to
slotProps.root
to utilize the FormControl state. I would like to type the function parameter (FormControlOwnerState
) but it's not being exported from the index file at the moment.Your environment
npx @mui/envinfo
Search keywords: FormControlOwnerState, FormControl, slotProps
The text was updated successfully, but these errors were encountered: