@useloops/design-system
Version:
The official React based Loops design system
26 lines (23 loc) • 848 B
TypeScript
import { PopperProps } from '@mui/material';
import { PopupState } from 'material-ui-popup-state/hooks';
import { PropsWithChildren, ReactElement, FunctionComponent } from 'react';
import { PopperProps as PopperProps$1 } from '../Popper/Popper.js';
import { SurfaceProps } from '../Surface/Surface.js';
import { MenuItemProps } from './MenuItem.js';
interface MenuProps extends PropsWithChildren {
menuItems?: MenuItemProps[];
offset?: number[];
placement?: PopperProps['placement'];
state?: PopupState;
parentState?: PopupState;
bindOn?: PopperProps$1['bindOn'];
trigger: ReactElement;
width?: number;
slotProps?: {
popper?: PopperProps$1['popperProps'];
surface?: SurfaceProps;
};
}
declare const Menu: FunctionComponent<MenuProps>;
export { Menu as default };
export type { MenuProps };