@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.
18 lines (17 loc) • 652 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)
*/
declare const SwitchThumb: React.ForwardRefExoticComponent<SwitchThumb.Props & React.RefAttributes<HTMLSpanElement>>;
declare namespace SwitchThumb {
interface Props extends BaseUIComponentProps<'span', State> {
}
interface State extends SwitchRoot.State {
}
}
export { SwitchThumb };