@oruga-ui/oruga-next
Version:
UI components for Vue.js and CSS framework agnostic
33 lines (27 loc) • 892 B
text/typescript
import type { App, Plugin } from "vue";
import Notification from "./Notification.vue";
import NotificationNotice from "./NotificationNotice.vue";
import NotificationProgrammatic from "./useNotificationProgrammatic";
import {
registerComponent,
registerComponentProgrammatic,
} from "@/utils/plugins";
/** export notification specific types */
export type { NotificationProgrammaticOptions } from "./useNotificationProgrammatic";
/** export notification plugin */
export default {
install(app: App) {
registerComponent(app, Notification);
registerComponentProgrammatic(
app,
"notification",
NotificationProgrammatic,
);
},
} as Plugin;
/** export notification components & composables */
export {
Notification as ONotification,
NotificationNotice as ONotificationNotice,
NotificationProgrammatic,
};