@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 (32 loc) • 1.14 kB
TypeScript
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)
*/
declare const MenuCheckboxItemIndicator: React.ForwardRefExoticComponent<MenuCheckboxItemIndicator.Props & React.RefAttributes<HTMLSpanElement>>;
declare namespace MenuCheckboxItemIndicator {
interface Props extends BaseUIComponentProps<'span', State> {
/**
* Whether to keep the HTML element in the DOM when the checkbox item is not checked.
* @default false
*/
keepMounted?: boolean;
}
interface State {
/**
* Whether the checkbox item is currently ticked.
*/
checked: boolean;
/**
* Whether the component should ignore user interaction.
*/
disabled: boolean;
highlighted: boolean;
transitionStatus: TransitionStatus;
}
}
export { MenuCheckboxItemIndicator };