mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
20 lines
915 B
TypeScript
20 lines
915 B
TypeScript
import { UIComponentProps } from "../../utils/types.js";
|
|
import { MenuState } from "@videojs/core";
|
|
//#region src/ui/menu/menu-checkbox-item.d.ts
|
|
interface MenuCheckboxItemProps extends UIComponentProps<'div', MenuState> {
|
|
/** Whether the item is currently checked. */
|
|
checked: boolean;
|
|
/** Called when the checked state should change. */
|
|
onCheckedChange: (checked: boolean) => void;
|
|
/** Whether the item is disabled. */
|
|
disabled?: boolean;
|
|
}
|
|
/** A checkbox-style menu item. Renders a `<div>` with `role="menuitemcheckbox"`. */
|
|
declare const MenuCheckboxItem: import("react").ForwardRefExoticComponent<Omit<MenuCheckboxItemProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
declare namespace MenuCheckboxItem {
|
|
type Props = MenuCheckboxItemProps;
|
|
type State = MenuState;
|
|
}
|
|
//#endregion
|
|
export { MenuCheckboxItem, MenuCheckboxItemProps };
|
|
//# sourceMappingURL=menu-checkbox-item.d.ts.map
|