import * as LabelPrimitive from "@radix-ui/react-label"; import * as SwitchPrimitives from "@radix-ui/react-switch"; import * as React from "react"; import { labelTextStyle, rootStyle, switchButtonStyle, thumbStyle } from "./variants"; const Root = React.forwardRef>( function SwitchRootEloquent({ className, disabled, children, ...props }, ref) { return (
{children}
) } ) const SwitchLabelText = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >( function SwitchLabelTextEloquent({ className, children, ...props }, ref) { return ( {children} ) } ) const SwitchButton = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(function SwitchButtonEloquent({ className, ...props }, ref) { return ( ); }); export const Switch = { Root, Button: SwitchButton, Label: SwitchLabelText, };