@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

none

Package Sidebar

Install

npm i @kongponents/ktoaster

Weekly Downloads

1

Version

7.2.2

License

Apache-2.0

Unpacked Size

1.17 MB

Total Files

13

Last publish

Collaborators

  • konginc
  • darrenjennings
  • travispamaral
  • nijikokun