Cute Alert

Simple open source JavaScript library that aims to provide beautiful alerts and toasts to your website.

Storybook View it on GitHub


Getting started

Installation

npm install cute-alert

Alerts

import { cuteAlert } from 'cute-alert'

cuteAlert({
  type: 'success',
  title: 'Title',
  description: 'Description',
  timer: 5000,
  primaryButtonText: 'Confirm',
  secondaryButtonText: 'Cancel'
})

Check out the Alerts page for more detailed instructions.

Toasts

import { cuteToast } from 'cute-alert'

cuteToast({
  type: 'success',
  title: 'Title',
  description: 'Description',
  timer: 5000
})

Check out the Toasts page for more detailed instructions.

Contributing

If you wish to contribute with Cute Alert, you can learn more about how to do so in our GitHub repository.

License

Cute Alert is distributed by an MIT license.