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.

24 lines 924 B
import * as React from 'react'; import type { BaseUIComponentProps } from "../../utils/types.js"; import { type TransitionStatus } from "../../utils/useTransitionStatus.js"; /** * Indicates whether the item is selected. * Renders a `<span>` element. */ export declare const ComboboxItemIndicator: React.ForwardRefExoticComponent<ComboboxItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>; export interface ComboboxItemIndicatorProps extends BaseUIComponentProps<'span', ComboboxItemIndicator.State> { children?: React.ReactNode; /** * Whether to keep the HTML element in the DOM when the item is not selected. * @default false */ keepMounted?: boolean; } export interface ComboboxItemIndicatorState { selected: boolean; transitionStatus: TransitionStatus; } export declare namespace ComboboxItemIndicator { type Props = ComboboxItemIndicatorProps; type State = ComboboxItemIndicatorState; }