UNPKG

@szum-tech/design-system

Version:

Szum-Tech design system with tailwindcss support

19 lines (14 loc) 709 B
import * as React from 'react'; import { Switch as Switch$1 } from 'radix-ui'; import { VariantProps } from 'class-variance-authority'; import * as class_variance_authority_types from 'class-variance-authority/types'; declare const switchVariants: (props?: { size?: "default" | "sm"; } & class_variance_authority_types.ClassProp) => string; type SwitchCvaProps = VariantProps<typeof switchVariants>; type SwitchSizeType = NonNullable<SwitchCvaProps["size"]>; type SwitchProps = React.ComponentProps<typeof Switch$1.Root> & { size?: SwitchSizeType; }; declare function Switch({ className, size, ...props }: SwitchProps): React.JSX.Element; export { Switch, type SwitchProps, type SwitchSizeType };