@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.
25 lines • 1.02 kB
TypeScript
import * as React from 'react';
import type { CheckboxRoot } from "../root/CheckboxRoot.js";
import type { BaseUIComponentProps } from "../../utils/types.js";
import { type TransitionStatus } from "../../utils/useTransitionStatus.js";
/**
* Indicates whether the checkbox is ticked.
* Renders a `<span>` element.
*
* Documentation: [Base UI Checkbox](https://base-ui.com/react/components/checkbox)
*/
export declare const CheckboxIndicator: React.ForwardRefExoticComponent<CheckboxIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
export interface CheckboxIndicatorState extends CheckboxRoot.State {
transitionStatus: TransitionStatus;
}
export interface CheckboxIndicatorProps extends BaseUIComponentProps<'span', CheckboxIndicator.State> {
/**
* Whether to keep the element in the DOM when the checkbox is not checked.
* @default false
*/
keepMounted?: boolean;
}
export declare namespace CheckboxIndicator {
type State = CheckboxIndicatorState;
type Props = CheckboxIndicatorProps;
}