@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
6 lines (5 loc) • 346 B
JavaScript
import { useContainerQuery } from './use-container-query';
import { getMatchingBreakpoint } from '../../breakpoints';
export function useContainerBreakpoints(triggers) {
return useContainerQuery(function (rect) { return getMatchingBreakpoint(rect.width, triggers); }, [triggers === null || triggers === void 0 ? void 0 : triggers.join()]);
}