UNPKG

@slashid/react-primitives

Version:

Primitive components for the /id React SDK

12 lines 552 B
import * as RadixSwitch from "@radix-ui/react-switch"; type Props = RadixSwitch.SwitchProps & { /** blocked state where the switch is disabled and a lock icon is displayed */ blocked?: boolean; }; /** * Switch component built on top of Radix Switch primitives to display a toggle button. * It supports a blocked state where the switch is disabled and a lock icon is displayed. */ export declare const Switch: ({ className, blocked, ...props }: Props) => import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=index.d.ts.map