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.16 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<MenuRadioItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>; export interface MenuRadioItemIndicatorProps extends BaseUIComponentProps<'span', MenuRadioItemIndicator.State> { /** * Whether to keep the HTML element in the DOM when the radio item is inactive. * @default false */ keepMounted?: boolean; } export interface MenuRadioItemIndicatorState { /** * Whether the radio item is currently selected. */ checked: boolean; /** * Whether the component should ignore user interaction. */ disabled: boolean; highlighted: boolean; transitionStatus: TransitionStatus; } export declare namespace MenuRadioItemIndicator { type Props = MenuRadioItemIndicatorProps; type State = MenuRadioItemIndicatorState; }