@kongponents/ktoaster
v7.2.2
Published
Toaster component.
Downloads
404
Keywords
Readme
@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>
`
})