UNPKG

reverie-ui

Version:

A React UI library based on Tailwind CSS

9 lines (8 loc) 393 B
import React from "react"; import { CommonControlProps } from "../../types"; export interface SwitchProps extends CommonControlProps<HTMLInputElement> { value: boolean; onChange: (val: boolean, ev: React.ChangeEvent<HTMLInputElement>) => void; } declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>; export default Switch;