@dcodegroup-au/dsg-vue
Version:
Front-end Vue/Tailwind DSG for UntitledUI.
46 lines (45 loc) • 1.57 kB
TypeScript
import { DsgBadgeProps } from '../Elements/DsgBadge.vue';
/**
* -------------------------------------------------
* # Setup: Props/Variables/Models
* -------------------------------------------------
*/
export interface DsgTabLink {
name: string;
key: string;
href?: string;
current: boolean;
badge?: DsgBadgeProps;
[key: string]: any;
}
export interface DsgTabProps {
tabs: DsgTabLink[];
preventVisits?: boolean;
useWindowLocation?: boolean;
replaceState?: boolean;
replaceStrategy?: "window" | "inertia";
useSlots?: boolean;
selfUpdate?: boolean;
teleportSlotTo?: string;
}
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: Partial<Record<`dsg-tab--content--${string}`, (_: {
data: DsgTabLink;
}) => any>>;
refs: {};
rootEl: HTMLDivElement;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<DsgTabProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
"tab-clicked": (tab: DsgTabLink) => any;
}, string, import('vue').PublicProps, Readonly<DsgTabProps> & Readonly<{
"onTab-clicked"?: ((tab: DsgTabLink) => any) | undefined;
}>, {}, {}, {}, {}, 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;
};
};