@nextcloud/vue
Version:
Nextcloud vue components
53 lines (52 loc) • 1.77 kB
TypeScript
import { Slot } from 'vue';
type __VLS_Props = {
/**
* Optional text to show as a heading of the note card
*/
heading?: string;
/**
* Enforce the `alert` role on the note card.
*
* The alert role should only be used for information that requires the user's immediate attention.
*
* @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/alert_role
*/
showAlert?: boolean;
/**
* The message text of the note card
*/
text?: string;
/**
* Type or severity of the message
*/
type?: 'success' | 'info' | 'warning' | 'error';
};
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: Readonly<{
/** The main content (overwrites the `text` prop) */
default?: Slot;
/** Manually provided icon */
icon?: Slot;
}> & {
/** The main content (overwrites the `text` prop) */
default?: Slot;
/** Manually provided icon */
icon?: Slot;
};
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, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
type: "success" | "info" | "warning" | "error";
text: string;
heading: string;
}, {}, {}, {}, 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;
};
};