@kelvininc/ui-components
Version:
Kelvin UI Components
28 lines (27 loc) • 1.16 kB
TypeScript
import { EventEmitter } from '../../stencil-public-runtime';
import { EComponentSize } from '../../types';
export declare class KvRadio {
/** (optional) Sets the button as checked when initializing */
checked?: boolean;
/** Watch the `checked` property and update internal state accordingly */
checkedChangeHandler(newValue?: boolean): void;
/** (optional) Sets this button styling to be disabled and disables click events */
disabled?: boolean;
/** Watch the `disabled` property and update internal state accordingly */
disabledChangeHandler(newValue?: boolean): void;
/** (optional) Adds a label aside the button */
label?: string;
/** (optional) Sets this tab item to a different styling configuration */
size: EComponentSize;
/** Internal checked / unchecked state */
isChecked: boolean;
/** Internal enabled / disabled state */
isDisabled: boolean;
/** Emits when there's a change in state internally */
checkedChange: EventEmitter<boolean>;
handleKeyDown(ev: KeyboardEvent): void;
private clickThrottler;
private onCheck;
connectedCallback(): void;
render(): any;
}