UNPKG

@open-tender/store

Version:

A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API

16 lines (15 loc) 535 B
import { SwitchProps } from '@open-tender/ui'; import { ReactNode } from 'react'; declare const Switch: ({ id, label, on, isRequired, disabled, falseTrackColor, thumbColor, trueTrackColor, onChange, children }: { id: number | string; label: string; on: boolean; falseTrackColor?: string; trueTrackColor?: string; thumbColor?: string; isRequired: boolean; disabled: boolean; onChange: (value: boolean) => void; children: (props: SwitchProps) => ReactNode; }) => ReactNode; export default Switch;