import { FieldWrapper } from './shared' export type SwitchProps = Omit, 'name'> & { name: string label?: string error?: string info?: string description?: string className?: string switchOnly?: boolean textSize?: 'sm' | 'md' reserveError?: boolean } export default function Switch(props: SwitchProps) { const { name, label, error, info, description, className, switchOnly, textSize = 'sm', reserveError, ...inputProps } = props return ( ) }