UNPKG

react-wired-elements

Version:

Wired Elements as React components. TypeScript types included.

29 lines (28 loc) 800 B
import { BaseProps } from './types'; export interface WiredToggleProps extends BaseProps { /** * Rather the toggle is checked or not. * @default false */ checked?: boolean; /** * Disable the toggle. * @default false */ disabled?: boolean; /** * The active color of the toggle knob. * @default rgb(63, 81, 181) */ activeColor?: string; /** * The inactive color of the toggle knob. * @default gray */ inactiveColor?: string; /** * Event fired when state of the toggle changes. */ onChange?(e: CustomEvent): void; } export declare const WiredToggle: ({ checked, disabled, onChange, activeColor, inactiveColor, className, style, }: WiredToggleProps) => JSX.Element;