UNPKG

@base-ui-components/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

33 lines 1.19 kB
import * as React from 'react'; import { BaseUIComponentProps } from "../../utils/types.js"; import { TransitionStatus } from "../../utils/useTransitionStatus.js"; /** * Indicates whether the checkbox item is ticked. * Renders a `<div>` element. * * Documentation: [Base UI Menu](https://base-ui.com/react/components/menu) */ export declare const MenuCheckboxItemIndicator: React.ForwardRefExoticComponent<MenuCheckboxItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>; export interface MenuCheckboxItemIndicatorProps extends BaseUIComponentProps<'span', MenuCheckboxItemIndicator.State> { /** * Whether to keep the HTML element in the DOM when the checkbox item is not checked. * @default false */ keepMounted?: boolean; } export interface MenuCheckboxItemIndicatorState { /** * Whether the checkbox item is currently ticked. */ checked: boolean; /** * Whether the component should ignore user interaction. */ disabled: boolean; highlighted: boolean; transitionStatus: TransitionStatus; } export declare namespace MenuCheckboxItemIndicator { type Props = MenuCheckboxItemIndicatorProps; type State = MenuCheckboxItemIndicatorState; }