UNPKG

react-lightning-design-system

Version:

Salesforce Lightning Design System components built with React

22 lines (21 loc) 531 B
import React, { InputHTMLAttributes, Ref } from 'react'; import { FormElementProps } from './FormElement'; /** * */ export type ToggleProps = { label?: string; required?: boolean; error?: FormElementProps['error']; cols?: number; name?: string; elementRef?: Ref<HTMLDivElement>; inputRef?: Ref<HTMLInputElement>; onValueChange?: (checked: boolean) => void; } & InputHTMLAttributes<HTMLInputElement>; /** * */ export declare const Toggle: React.FC<ToggleProps> & { isFormElement: boolean; };