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.

26 lines (25 loc) 927 B
import * as React from 'react'; import type { BaseUIComponentProps } from '../../utils/types.js'; import { type TransitionStatus } from '../../utils/useTransitionStatus.js'; /** * Indicates whether the select item is selected. * Renders a `<div>` element. * * Documentation: [Base UI Select](https://base-ui.com/react/components/select) */ declare const SelectItemIndicator: React.ForwardRefExoticComponent<SelectItemIndicator.Props & React.RefAttributes<HTMLSpanElement>>; declare namespace SelectItemIndicator { interface Props extends BaseUIComponentProps<'span', State> { children?: React.ReactNode; /** * Whether to keep the HTML element in the DOM when the item is not selected. * @default false */ keepMounted?: boolean; } interface State { selected: boolean; transitionStatus: TransitionStatus; } } export { SelectItemIndicator };