UNPKG

dgz-ui

Version:

Custom ui library using React.js, Shadcn/ui, TailwindCSS, Typescript

16 lines 761 B
import * as SwitchPrimitives from '@radix-ui/react-switch'; import * as React from 'react'; /** * Props for the Switch component. Extends Radix Switch Root props. * @property {boolean} [checked] - The checked state of the switch. * @property {boolean} [disabled] - If true, the switch will be disabled. */ export type SwitchProps = React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>; /** * Switch - A toggle control for binary options. * @returns {JSX.Element} The rendered Switch component. * @component */ declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>; export { Switch }; //# sourceMappingURL=switch.d.ts.map