@useloops/design-system
Version:
The official React based Loops design system
28 lines (25 loc) • 745 B
TypeScript
import { PopupState } from 'material-ui-popup-state/hooks';
import { MouseEventHandler } from 'react';
import { IconName } from '../../../BrandCore/Icon.js';
import { IconProps } from '../../BrandCore/Icon/Icon.js';
interface MenuItemProps {
baseState?: PopupState;
label?: string;
active?: boolean;
danger?: boolean;
divider?: boolean;
heading?: boolean;
selected?: boolean;
disabled?: boolean;
closeOnClick?: boolean;
tooltip?: boolean;
hidden?: boolean;
onClick?: MouseEventHandler<HTMLButtonElement>;
children?: MenuItemProps[];
width?: number;
startIcon?: IconName;
slotProps?: {
startIcon?: Partial<Omit<IconProps, 'name'>>;
};
}
export type { MenuItemProps };