UNPKG

@nextcloud/vue

Version:
68 lines (67 loc) 1.96 kB
import { ButtonType, ButtonVariant } from '../NcButton/index.ts'; type __VLS_Props = { /** * The function that will be called when the button is pressed. * If the function returns `false` the click is ignored and the dialog will not be closed, * which is the default behavior of "reset"-buttons. * * @default '() => {}' */ callback?: () => unknown | false; /** * If the button should be shown as disabled. * * @default false */ disabled?: boolean; /** * Optional inline SVG icon for the button. * * @default undefined */ icon?: string; /** * The label of the button. */ label: string; /** * The button type, see `NcButton`. * * @default 'button' */ type?: ButtonType; /** * The button variant, see `NcButton`. * * @default 'tertiary' * @since 8.24.0 */ variant?: ButtonVariant; }; declare function __VLS_template(): { attrs: Partial<{}>; slots: { icon?(_: {}): any; }; 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, payload: unknown) => any; }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{ onClick?: ((event: MouseEvent, payload: unknown) => any) | undefined; }>, { callback: () => unknown | false; type: ButtonType; icon: string; disabled: boolean; variant: ButtonVariant; }, {}, {}, {}, 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; }; };