@mui/joy
Version:
Joy UI is an open-source React component library that implements MUI's own design principles. It's comprehensive and can be used in production out of the box.
35 lines (34 loc) • 1.62 kB
TypeScript
export interface MenuItemClasses {
/** Class name applied to the root element. */
root: string;
/** State class applied to the `component`'s `focusVisibleClassName` prop. */
focusVisible: string;
/** State class applied to the inner `component` element if `disabled={true}`. */
disabled: string;
/** State class applied to the root element if `selected={true}`. */
selected: string;
/** Class name applied to the root element if `color="primary"`. */
colorPrimary: string;
/** Class name applied to the root element if `color="neutral"`. */
colorNeutral: string;
/** Class name applied to the root element if `color="danger"`. */
colorDanger: string;
/** Class name applied to the root element if `color="success"`. */
colorSuccess: string;
/** Class name applied to the root element if `color="warning"`. */
colorWarning: string;
/** Class name applied to the root element when color inversion is triggered. */
colorContext: string;
/** State class applied to the root element if `variant="plain"`. */
variantPlain: string;
/** State class applied to the root element if `variant="soft"`. */
variantSoft: string;
/** State class applied to the root element if `variant="outlined"`. */
variantOutlined: string;
/** State class applied to the root element if `variant="solid"`. */
variantSolid: string;
}
export type MenuItemClassKey = keyof MenuItemClasses;
export declare function getMenuItemUtilityClass(slot: string): string;
declare const menuItemClasses: MenuItemClasses;
export default menuItemClasses;