UNPKG

primereact

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/primereact.svg)](https://badge.fury.io/js/primereact) [![Discord Chat](https://img.shields.io/discord/5579

21 lines (18 loc) 616 B
import * as React from 'react'; import TooltipOptions from '../tooltip/TooltipOptions'; interface InputSwitchProps { id?: string; offLabel?: string; onLabel?: string; style?: object; className?: string; checked?: boolean; disabled?: boolean; tooltip?: any; tooltipOptions?: TooltipOptions; ariaLabelledBy?: string, onChange?(e: {originalEvent: Event, value: boolean, target: {name: string, id: string, value: boolean}}): void; onFocus?(event: Event): void; onBlur?(event: Event): void; } export class InputSwitch extends React.Component<InputSwitchProps,any> {}