@nextcloud/vue
Version:
Nextcloud vue components
43 lines (42 loc) • 1.45 kB
TypeScript
type __VLS_Props = {
/**
* Toggles the disabled state of the button on and off.
*/
disabled?: boolean;
/**
* The readable text of the button.
* Can be overriden by using the `default` slot.
*
* If neither this is set nor the `default` slot is used, you will have to set at least `aria-label` or `aria-labelledby`.
*/
text?: string;
/**
* The button variant.
* In most cases the `secondary` style should be used.
*/
variant?: 'primary' | 'secondary';
};
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
default?(_: {}): any;
};
refs: {};
rootEl: HTMLDivElement;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
click: (args_0: MouseEvent) => any;
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
onClick?: ((args_0: MouseEvent) => any) | undefined;
}>, {
text: string;
variant: "primary" | "secondary";
}, {}, {}, {}, 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;
};
};