@open-tender/ui
Version:
A component library for use with the Open Tender web app
17 lines (16 loc) • 457 B
TypeScript
import React from 'react';
import { ScreenConfig } from '../types';
export interface SwitchProps {
id: number | string;
config: ScreenConfig;
falseTrackColor?: string;
trueTrackColor?: string;
thumbColor?: string;
label: string;
value: boolean;
isRequired?: boolean;
disabled?: boolean;
onTagSwitch: (value: boolean) => void;
}
declare const Switch: (_props: SwitchProps) => React.JSX.Element;
export default Switch;