0.0.2 • Published 2 years ago

tf-custom-header v0.0.2

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
2 years ago

Vue 3 + TypeScript Custom Header

Usage

Installation

npm i tf-custom-header

Install plugin from main.ts

import CustomHeader from 'tf-custom-header';
import "tf-custom-header/styles.css";

const app = createApp(App);
app.use(CustomHeader);

In components

<CustomHeader title="Dashboard" @clicked="clicked"></CustomHeader>

Listening to clicked event(Optional)

const isLoggedIn = ref(false);
function clicked(loggedin: boolean) {
  isLoggedIn.value = loggedin;
}
0.0.2

2 years ago

0.0.1

2 years ago