@bothub-chat/ui
Version:
Bothub UI Components
13 lines (12 loc) • 477 B
TypeScript
import React from 'react';
type BaseSwitchProps = {
id?: string;
name?: string;
onChange?: (value: boolean) => void;
value?: boolean;
label?: string;
className?: string;
};
export type SwitchProps = BaseSwitchProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof BaseSwitchProps>;
export declare const Switch: ({ id, name, onChange, value, label, className, ...inputProps }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
export {};