carbon-react
Version:
A library of reusable React components for easily building user interfaces.
21 lines (20 loc) • 983 B
TypeScript
import React, { ReactNode } from "react";
import { TagProps } from "../../../__internal__/utils/helpers/tags";
export interface ResponsiveVerticalMenuProps extends TagProps {
/** The content of the menu */
children?: ReactNode;
/** The height of the primary and secondary menus */
height?: string;
/** The value (in pixels) at which the ResponsiveVerticalMenu will become responsive/modal */
responsiveBreakpoint?: number;
/** The width of the primary and secondary menus when in default mode */
width?: string;
/** Set Menu launcher button data tag props */
launcherButtonDataProps?: TagProps;
}
export type ResponsiveVerticalMenuHandle = {
/** Programmatically focus on the launcher button. */
focusLaunchButton: () => void;
} | null;
export declare const ResponsiveVerticalMenu: React.ForwardRefExoticComponent<ResponsiveVerticalMenuProps & React.RefAttributes<ResponsiveVerticalMenuHandle>>;
export default ResponsiveVerticalMenu;