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.

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