@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.
16 lines • 736 B
TypeScript
import * as React from 'react';
import type { SwitchRoot } from "../root/SwitchRoot.js";
import type { BaseUIComponentProps } from "../../utils/types.js";
/**
* The movable part of the switch that indicates whether the switch is on or off.
* Renders a `<span>`.
*
* Documentation: [Base UI Switch](https://base-ui.com/react/components/switch)
*/
export declare const SwitchThumb: React.ForwardRefExoticComponent<SwitchThumbProps & React.RefAttributes<HTMLSpanElement>>;
export interface SwitchThumbProps extends BaseUIComponentProps<'span', SwitchThumb.State> {}
export interface SwitchThumbState extends SwitchRoot.State {}
export declare namespace SwitchThumb {
type Props = SwitchThumbProps;
type State = SwitchThumbState;
}