@ipaat/vue3-tailwind3-cookie-comply
Version:
A Vue 3 compatible component to handle cookie consent styled with Tailwind CSS 3.
16 lines (12 loc) • 460 B
text/typescript
import type { App, Plugin } from 'vue';
import component from './VueCookieComply/VueCookieComply.vue';
type InstallableComponent = typeof component & {
install: Exclude<Plugin['install'], undefined>;
};
export default /*#__PURE__*/ ((): InstallableComponent => {
const installable = component as unknown as InstallableComponent;
installable.install = (app: App) => {
app.component('VueCookieComply', installable);
};
return installable;
})();