@easy-shadcn/react
Version:
Use shadcn/ui easy&enhance like component library
20 lines (15 loc) • 1.05 kB
text/typescript
import * as React$1 from 'react';
import { ComponentProps, ReactNode } from 'react';
import * as SwitchPrimitives from '@radix-ui/react-switch';
import * as class_variance_authority_types from 'class-variance-authority/types';
import * as LabelPrimitive from '@radix-ui/react-label';
import { VariantProps } from 'class-variance-authority';
declare const Switch$1: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;
interface SwitchProps extends ComponentProps<typeof Switch$1> {
label?: ReactNode;
labelProps?: ComponentProps<typeof Label>;
wrapperClassName?: string;
}
declare const Switch: React.FC<SwitchProps>;
export { Switch, type SwitchProps };