@kelvininc/ui-components
Version:
Kelvin UI Components
30 lines (29 loc) • 979 B
TypeScript
import { EventEmitter } from '../../stencil-public-runtime';
import { EComponentSize } from '../../utils/types';
export declare enum EActionButtonType {
Primary = "primary",
Secondary = "secondary",
Tertiary = "tertiary",
Ghost = "ghost",
Danger = "danger"
}
export interface IButton {
/** (optional) Button's type */
type?: EActionButtonType;
/** (optional) If `true` the button is disabled */
disabled: boolean;
/** (optional) If `true` the button is active */
active: boolean;
/** (optional) If `true` the button is of type loading */
loading: boolean;
/** (optional) Button's size */
size: EComponentSize;
}
export interface IButtonEvents {
/** Emitted when action button is clicked */
clickButton: EventEmitter<MouseEvent>;
/** Emitted when action button is focused */
focusButton: EventEmitter<FocusEvent>;
/** Emitted when action button is blur */
blurButton: EventEmitter<FocusEvent>;
}