@datametria/vue-components
Version:
DATAMETRIA Vue.js 3 Component Library with Multi-Brand Theming - 51 components + 10 composables with theming support, WCAG 2.2 AA, dark mode, responsive system
42 lines (41 loc) • 1.47 kB
TypeScript
interface Tab {
label: string;
icon?: string;
badge?: string | number;
disabled?: boolean;
}
interface Props {
tabs: (string | Tab)[];
modelValue?: number;
variant?: 'default' | 'pills' | 'underline';
orientation?: 'horizontal' | 'vertical';
showIndicator?: boolean;
ariaLabel?: string;
}
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: Partial<Record<`panel-${number}`, (_: {}) => any>>;
refs: {};
rootEl: HTMLDivElement;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
"update:modelValue": (index: number) => any;
change: (index: number) => any;
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
"onUpdate:modelValue"?: ((index: number) => any) | undefined;
onChange?: ((index: number) => any) | undefined;
}>, {
variant: "default" | "pills" | "underline";
modelValue: number;
ariaLabel: string;
orientation: "horizontal" | "vertical";
showIndicator: boolean;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};