UNPKG

@react-md/menu

Version:

Create menus that auto-position themselves within the viewport and adhere to the accessibility guidelines

11 lines 457 B
/* eslint-disable react/prop-types */ import React, { createContext, useContext } from "react"; var Orientation = createContext("vertical"); export function useOrientation() { return useContext(Orientation); } export var OrientationProvider = function (_a) { var orientation = _a.orientation, children = _a.children; return (React.createElement(Orientation.Provider, { value: orientation }, children)); }; //# sourceMappingURL=Orientation.js.map