You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
417 B
JavaScript
17 lines
417 B
JavaScript
'use client';
|
|
|
|
import * as React from 'react';
|
|
import { FormControlContext } from './FormControlContext';
|
|
/**
|
|
*
|
|
* Demos:
|
|
*
|
|
* - [Form Control](https://mui.com/base-ui/react-form-control/#hook)
|
|
*
|
|
* API:
|
|
*
|
|
* - [useFormControlContext API](https://mui.com/base-ui/react-form-control/hooks-api/#use-form-control-context)
|
|
*/
|
|
export function useFormControlContext() {
|
|
return React.useContext(FormControlContext);
|
|
} |