@nextcloud/vue
Version:
Nextcloud vue components
52 lines (51 loc) • 2.02 kB
TypeScript
import { AnchorHTMLAttributes, Slot } from 'vue';
import { RouteLocationRaw } from 'vue-router';
type __VLS_Props = {
/** Main label */
label?: string;
/** Optional description below the label, also used for the aria-describedby */
description?: string;
/** Accent on the description instead of the label (see docs) */
invertedAccent?: boolean;
/** RouterLink's `to` prop; when provided, renders as `<RouterLink>` (takes precedence over the `href` prop) */
to?: RouteLocationRaw;
/** Hyperlink `href` attribute; when provided, renders as `<a>` */
href?: string;
/** Hyperlink's target attribute */
target?: AnchorHTMLAttributes['target'];
/** Button's disabled attribute, not applicable to links */
disabled?: boolean;
};
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: Readonly<{
/** Custom label content */
default?: Slot;
/** Custom description content */
description?: Slot;
/** Required icon (links have a default icon) */
icon?: Slot;
}> & {
/** Custom label content */
default?: Slot;
/** Custom description content */
description?: Slot;
/** Required icon (links have a default icon) */
icon?: Slot;
};
refs: {};
rootEl: any;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
click: (event: MouseEvent) => any;
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
onClick?: ((event: MouseEvent) => any) | undefined;
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};