@veracity/vui
Version:
Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.
28 lines (27 loc) • 1.03 kB
TypeScript
import { ThemingProps } from "../theme/types.js";
import "../theme/index.js";
import { ListProps } from "../list/list.types.js";
import "../list/index.js";
import { PopoverContentProps, PopoverProps } from "../popover/popover.types.js";
import "../popover/index.js";
import { ReactNode, RefObject } from "react";
//#region src/menu/menu.types.d.ts
type MenuListProps = ListProps & {
/** Props object passed to the inner PopoverContent. */
contentProps?: PopoverContentProps;
/** Ref passed to the inner PopoverContent. */
contentRef?: RefObject<HTMLDivElement>;
/** Maximum height of the list. */
maxH?: number;
/** Custom content displayed at the bottom of the panel */
slotBottom?: ReactNode;
/** Custom content displayed at the top of the panel */
slotTop?: ReactNode;
};
type MenuProps = ThemingProps<'Menu'> & PopoverProps & {
/** Content closes when clicking on a list item. */
closeOnSelect?: boolean;
};
//#endregion
export { MenuListProps, MenuProps };
//# sourceMappingURL=menu.types.d.ts.map