@kelvininc/ui-components
Version:
Kelvin UI Components
35 lines (34 loc) • 1.11 kB
TypeScript
import { EventEmitter } from '../../stencil-public-runtime';
import { EComponentSize, EIconName } from '../../types';
import { IToggleButton, IToggleButtonEvents } from './toggle-button.types';
/**
* @part toggle-button - The toggle action.
* @part toggle-icon - The toggle button's icon container.
* @part toggle-text - The toggle button's text container.
* @part toggle-label - The toggle button's label container.
*/
export declare class KvToggleButton implements IToggleButton, IToggleButtonEvents {
/** @inheritdoc */
value: string | number;
/** @inheritdoc */
label?: string;
/** @inheritdoc */
icon?: EIconName;
/** @inheritdoc */
size: EComponentSize;
/** @inheritdoc */
disabled?: boolean;
/** @inheritdoc */
checked?: boolean;
/** @inheritdoc */
preventDefault?: boolean;
/** @inheritdoc */
withRadio?: boolean;
/** @inheritdoc */
checkedChange: EventEmitter<string | number>;
private clickThrottler;
private onCheck;
connectedCallback(): void;
onClick: (event: MouseEvent) => void;
render(): any;
}