UNPKG

@awsui/components-react

Version:

AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A

9 lines (8 loc) 361 B
import { __assign } from "tslib"; import { useContext } from 'react'; import { createDomContext } from '../hooks/dom-context'; export var FormFieldDomContext = createDomContext('form-field-context', {}); export function useFormFieldContext(props) { var context = useContext(FormFieldDomContext.context); return __assign(__assign({}, context), props); }