UNPKG

mithril-materialized

Version:
13 lines (12 loc) 543 B
import { FactoryComponent } from 'mithril'; import { InputAttrs } from './input-options'; export interface SwitchAttrs extends Pick<InputAttrs<boolean>, 'label' | 'disabled' | 'id' | 'className' | 'onchange' | 'newRow' | 'isMandatory'> { /** Left text label */ left?: string; /** Right text label */ right?: string; /** If checked is true, the switch is set in the right position. */ checked?: boolean; } /** Component to display a switch with two values. */ export declare const Switch: FactoryComponent<SwitchAttrs>;