Nybble Processing Mainframe

    svelte-message
    TypeScript icon, indicating that this package has built-in type declarations

    1.3.3 • Public • Published

    Svelte Message

    A Message Component from Svelte.



    Install

    npm install svelte-message
    
    pnpm add svelte-message
    
    yarn add svelte-message
    

    Usage

    <script>
      import { Message, message } from 'svelte-message'
      const single = false
      const toast = false
    </script>
    
    <Message options={{ single, toast }} />
    
    <button on:click={ () => { message.success("success", 3000) } }>success</button>
    

    Other

    If you use Vite, need to add exclude:

    vite.config.js
    
    optimizeDeps: {
      exclude: ['svelte-message'],
    },
    

    License

    MIT

    Install

    npm i svelte-message

    DownloadsWeekly Downloads

    2

    Version

    1.3.3

    License

    MIT

    Unpacked Size

    37.1 kB

    Total Files

    12

    Last publish

    Collaborators

    • iugsm