primevue-mirror/components/lib/inputswitch/InputSwitch.d.ts

70 lines
1.9 KiB
TypeScript
Executable File

/**
*
* InputSwitch is used to select a boolean value.
*
* [Live Demo](https://www.primevue.org/toggleswitch/)
*
* @module inputswitch
*
*/
import * as ToggleSwitch from '../toggleswitch';
import { DefineComponent, EmitFn, GlobalComponentConstructor } from '../ts-helpers';
/**
* Custom passthrough(pt) option method.
*/
export interface InputSwitchPassThroughMethodOptions extends ToggleSwitch.ToggleSwitchPassThroughMethodOptions {}
/**
* Custom passthrough(pt) options.
* @see {@link InputSwitchProps.pt}
*/
export interface InputSwitchPassThroughOptions extends ToggleSwitch.ToggleSwitchPassThroughOptions {}
/**
* Custom passthrough attributes for each DOM elements
*/
export interface InputSwitchPassThroughAttributes extends ToggleSwitch.ToggleSwitchPassThroughAttributes {}
/**
* Defines valid properties in InputSwitch component.
*/
export interface InputSwitchProps extends ToggleSwitch.ToggleSwitchProps {}
/**
* Defines current options in InputSwitch component.
*/
export interface InputSwitchContext extends ToggleSwitch.ToggleSwitchContext {}
export interface InputSwitchSlots extends ToggleSwitch.ToggleSwitchSlots {}
/**
* Defines valid emits in InputSwitch component.
*/
export interface InputSwitchEmitsOptions {}
export declare type InputSwitchEmits = EmitFn<InputSwitchEmitsOptions> & ToggleSwitch.ToggleSwitchEmits;
/**
* @deprecated since v4. Use ToggleSwitch component instead.
*
* **PrimeVue - InputSwitch**
*
* _InputSwitch is used to select a boolean value._
*
* [Live Demo](https://www.primevue.org/toggleswitch/)
* --- ---
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
*
* @group Component
*
*/
declare const InputSwitch: DefineComponent<InputSwitchProps, InputSwitchSlots, InputSwitchEmits>;
declare module 'vue' {
export interface GlobalComponents {
InputSwitch: GlobalComponentConstructor<InputSwitchProps, InputSwitchSlots, InputSwitchEmits>;
}
}
export default InputSwitch;