mithril-materialized
Version:
A materialize library for mithril.
13 lines (12 loc) • 543 B
TypeScript
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>;