UNPKG

@radix-ui/themes

Version:

[![Radix Themes Logo](https://radix-ui.com/social/themes.png)](https://radix-ui.com/themes)

12 lines (11 loc) 664 B
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 };