@gits-id/toast
v1.0.0-beta.3
Published
Toast component for Vue 3
Downloads
31
Readme
GITS Toast
Vue Toast Component.
Installation
npm
npm i @gits-id/toast
yarn
yarn add @gits-id/toast
pnpm
pnpm i @gits-id/toast
Usage
<script setup lang="ts">
import {ref} from 'vue';
import VToast from '@gits-id/toast';
import '@gits-id/toast/dist/style.css';
const isOpen = ref(true)
</script>
<template>
<button @click="isOpen = !isOpen">
{{ isOpen ? 'Close' : 'Open' }} Toast
</button>
<VToast v-model="isOpen">
Toast message
</VToast>
</template>
Documentation
View full documentation here.
License
MIT