@kongponents/ktoaster
7.2.2 • Public • Published @kongponents/ktoaster
new Vue({
data(){
return {
isVisible: false,
}
},
methods: {
showToaster() {
this.isVisible = true;
},
closeToaster() {
this.isVisible = false;
}
},
template: `
<div>
<KButton appearance='primary' :isRounded='true' :handleClick="showToaster">Open Toaster</KButton>
<KToaster :isVisible="isVisible" appearance='success' message="Hello! 👋🏼" @close="closeToaster" />
</div>
`
})
Readme
Keywords
nonePackage Sidebar
Install
npm i @kongponents/ktoaster
Weekly Downloads