@react-md/menu
Version:
Create menus that auto-position themselves within the viewport and adhere to the accessibility guidelines
10 lines (9 loc) • 337 B
TypeScript
import { FC, ReactNode } from "react";
declare type MenuOrientation = "horizontal" | "vertical";
export declare function useOrientation(): MenuOrientation;
interface OrientationProviderProps {
orientation: MenuOrientation;
children: ReactNode;
}
export declare const OrientationProvider: FC<OrientationProviderProps>;
export {};