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

12 lines (11 loc) 390 B
import { __assign } from "tslib"; import { useContext } from 'react'; import { createDomContext } from '../hooks/dom-context'; export var AppLayoutDomContext = createDomContext('app-layout-context', { stickyOffsetTop: 0, stickyOffsetBottom: 0 }); export function useAppLayoutContext() { var context = useContext(AppLayoutDomContext.context); return __assign({}, context); }