UNPKG

@base-ui/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.

28 lines 1.08 kB
import * as React from 'react'; import type { BaseUIComponentProps } from "../../internals/types.js"; import type { RadioRootState } from "../root/RadioRoot.js"; import { type TransitionStatus } from "../../internals/useTransitionStatus.js"; /** * Indicates whether the radio button is selected. * Renders a `<span>` element. * * Documentation: [Base UI Radio](https://base-ui.com/react/components/radio) */ export declare const RadioIndicator: React.ForwardRefExoticComponent<Omit<RadioIndicatorProps, "ref"> & React.RefAttributes<HTMLSpanElement>>; export interface RadioIndicatorProps extends BaseUIComponentProps<'span', RadioIndicatorState> { /** * Whether to keep the HTML element in the DOM when the radio button is inactive. * @default false */ keepMounted?: boolean | undefined; } export interface RadioIndicatorState extends RadioRootState { /** * The transition status of the component. */ transitionStatus: TransitionStatus; } export declare namespace RadioIndicator { type Props = RadioIndicatorProps; type State = RadioIndicatorState; }