UNPKG

commonux2

Version:

A collection of styled components for use in ABB projects, designed for React and Next.js. It features TypeScript support, integrates Lucide icons, and is built on Radix primitives with Tailwind CSS.

11 lines (10 loc) 605 B
import * as React from "react"; import * as SwitchPrimitives from "@radix-ui/react-switch"; import { type VariantProps } from "class-variance-authority"; declare const switchVariants: (props?: ({ variant?: "secondary" | "destructive" | null | undefined; } & import("class-variance-authority/types").ClassProp) | undefined) => string; export interface SwitchProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>, VariantProps<typeof switchVariants> { } declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>; export { Switch };