UNPKG

@lobehub/ui

Version:

Lobe UI is an open-source UI component library for building AIGC web apps

27 lines (25 loc) 676 B
import { IconProps } from "../Icon/type.mjs"; import "../Icon/index.mjs"; import { Key, ReactNode } from "react"; //#region src/Menu/switchItem.d.ts /** * Switch menu item shared by DropdownMenu / ContextMenu. * Similar to checkbox but renders as a toggle switch. */ interface MenuSwitchItemType { checked?: boolean; closeOnClick?: boolean; danger?: boolean; defaultChecked?: boolean; disabled?: boolean; extra?: ReactNode; icon?: IconProps['icon']; key: Key; label?: ReactNode; onCheckedChange?: (checked: boolean) => void; title?: ReactNode; type: 'switch'; } //#endregion export { MenuSwitchItemType }; //# sourceMappingURL=switchItem.d.mts.map