melba-toast
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

melba-toast - A tiny toast library

My focus for making this was to have a minimal toast that can easily be extended as necessary. The styling is currently minimal but that is by design and the aim would be for users to augment the styles and theme as necessary.

Installation

yarn add melba-toast

or

npm i melba-toast

Usage

import Melba from 'melba-toast';

const toast = new Melba({
    content: 'Testing',
    type: 'error'
});

See src/Melba.ts for additional options that can be passed in.

Be sure to load the styles too:

/* SCSS */
@import '~melba-toast';

Package Sidebar

Install

npm i melba-toast

Weekly Downloads

8

Version

3.0.0

License

MIT

Unpacked Size

43.5 kB

Total Files

10

Last publish

Collaborators

  • dom111