UNPKG

@syncfusion/ej2-react-buttons

Version:

A package of feature-rich Essential JS 2 components such as Button, CheckBox, RadioButton and Switch. for React

35 lines (34 loc) 1.06 kB
import * as React from 'react'; import { Switch, SwitchModel } from '@syncfusion/ej2-buttons'; import { DefaultHtmlAttributes } from '@syncfusion/ej2-react-base'; /** * Represents the react Switch Component. * ```ts * <SwitchComponent></SwitchComponent> * ``` */ export declare class SwitchComponent extends Switch { state: Readonly<{ children?: React.ReactNode | React.ReactNode[]; }> & Readonly<SwitchModel | DefaultHtmlAttributes>; setState: any; private getDefaultAttributes; initRenderCalled: boolean; private checkInjectedModules; private statelessTemplateProps; private templateProps; private immediateRender; private isReactMock; props: Readonly<{ children?: React.ReactNode | React.ReactNode[]; }> & Readonly<SwitchModel | DefaultHtmlAttributes>; forceUpdate: (callBack?: () => any) => void; context: Object; portals: any; isReactComponent: Object; refs: { [key: string]: React.ReactInstance; }; constructor(props: any); render(): any; }