@radix-ui/themes
Version:
[](https://radix-ui.com/themes)
12 lines (11 loc) • 664 B
TypeScript
import * as React from 'react';
import * as SwitchPrimitive from '@radix-ui/react-switch';
import { switchPropDefs } from './switch.props.js';
import type { ComponentPropsWithout } from '../helpers/index.js';
import type { GetPropDefTypes, MarginProps } from '../props/index.js';
type SwitchOwnProps = GetPropDefTypes<typeof switchPropDefs>;
interface SwitchProps extends ComponentPropsWithout<typeof SwitchPrimitive.Root, 'asChild' | 'color' | 'defaultValue' | 'children'>, MarginProps, SwitchOwnProps {
}
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
export { Switch };
export type { SwitchProps };