@eccenca/gui-elements
Version:
GUI elements based on other libraries, usable in React application, written in Typescript.
16 lines (15 loc) • 607 B
TypeScript
import React from "react";
import { SwitchProps as BlueprintSwitchProps } from "@blueprintjs/core";
export interface SwitchProps extends Omit<BlueprintSwitchProps, "onChange"> {
/**
* Event handler for changed state.
*/
onChange?: (value: boolean) => void;
/**
* class names
*/
className?: string;
}
export declare const Switch: ({ onChange, className, label, ...otherProps }: SwitchProps) => React.JSX.Element;
declare const _default: React.MemoExoticComponent<({ onChange, className, label, ...otherProps }: SwitchProps) => React.JSX.Element>;
export default _default;