@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.
28 lines • 995 B
TypeScript
import * as React from 'react';
import type { BaseUIComponentProps } from "../../utils/types.js";
import { type TransitionStatus } from "../../utils/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<RadioIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
export interface RadioIndicatorProps extends BaseUIComponentProps<'span', RadioIndicator.State> {
/**
* Whether to keep the HTML element in the DOM when the radio button is inactive.
* @default false
*/
keepMounted?: boolean;
}
export interface RadioIndicatorState {
/**
* Whether the radio button is currently selected.
*/
checked: boolean;
transitionStatus: TransitionStatus;
}
export declare namespace RadioIndicator {
type Props = RadioIndicatorProps;
type State = RadioIndicatorState;
}