@kelvininc/ui-components
Version:
Kelvin UI Components
31 lines (30 loc) • 1.26 kB
TypeScript
import { EventEmitter } from '../../stencil-public-runtime';
import { HostAttributes } from '../../stencil-public-runtime';
import { CustomCssClass, EIconName, ICustomCss } from '../../types';
import { ETabItemType } from './tab-item.types';
export declare class KvTabItem implements ICustomCss {
/** (required) A unique identifier for this tab */
tabKey: number | string;
/** (optional) Sets this tab item to a different styling configuration */
type?: ETabItemType;
/** (optional) Name to show in UI for this tab */
label?: string;
/** (optional) Icon to show in UI for this tab */
icon?: EIconName;
/** (optional) To disable this tab */
disabled?: boolean;
/** (optional) To set this tab as the selected one */
selected?: boolean;
/** (optional) Additional style to apply for custom CSS. */
customStyle?: HostAttributes['style'];
/** @inheritdoc */
customClass?: CustomCssClass;
/** (optional) Custom attributes to be applied to the tab element */
customAttributes?: Record<string, string>;
/** Emitted when the tab is selected */
tabSelected: EventEmitter<number | string>;
private tabClickThrottler;
connectedCallback(): void;
private tabClick;
render(): any;
}