UNPKG

@up-group/react-controls

Version:

We know that there are a ton of react UI library projects to choose from. Our hope with this one is to provide the next generation of react components that you can use to bootstrap your next project, or as a reference for building a UIKit. Read on to get

35 lines (34 loc) 1.05 kB
/// <reference types="react" /> import * as React from "react"; import { BaseControlComponent } from '../_Common/BaseControl/BaseControl'; export interface UpSwitchProps { onChange: (value?: boolean) => void; isNullable: boolean; default?: boolean; displayFalse?: string; displayTrue?: string; displayNull?: string; } export interface UpSwitchState { value?: boolean; } export default class UpSwitch extends BaseControlComponent<UpSwitchProps, boolean> { constructor(p: any, c: any); renderControl(): JSX.Element; onBoolClick: (a?: boolean) => void; getValue(event: any): any; } export interface UpSwitchBtnProps { isNullable: boolean; value?: boolean; SelectedValue?: boolean; onclick: (data?: boolean) => void; displayFalse: string; displayTrue: string; displayNull: string; } export declare class UpSwitchBtn extends React.Component<UpSwitchBtnProps, {}> { constructor(p: any, c: any); render(): JSX.Element; onClick: () => void; }