@veracity/vui
Version:
Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.
20 lines (18 loc) • 929 B
TypeScript
import { ThemingProps } from "../theme/types.js";
import { ListProps } from "../list/list.types.js";
import { PopoverContentProps, PopoverProps } from "../popover/popover.types.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