UNPKG

@oruga-ui/oruga-next

Version:

UI components for Vue.js and CSS framework agnostic

34 lines (28 loc) 1.04 kB
import type { App } from "vue"; import Notification from "./Notification.vue"; import NotificationNotice from "./NotificationNotice.vue"; import useNotificationProgrammatic, { NotificationProgrammaticFactory, } from "./useNotificationProgrammatic"; import { registerComponent, registerProgrammatic } from "@/utils/plugins"; import type { OrugaComponentPlugin } from "@/utils/config"; /** export notification specific types */ export type * from "./props"; export type { NotificationProgrammaticOptions } from "./useNotificationProgrammatic"; /** export notification plugin */ export default { install(app: App, { oruga }): void { registerComponent(app, Notification); registerProgrammatic( oruga, "notification", NotificationProgrammaticFactory, ); }, } satisfies OrugaComponentPlugin; /** export notification components & composables */ export { Notification as ONotification, NotificationNotice as ONotificationNotice, useNotificationProgrammatic, };