Skip to content

Alert and confirm library for reactjs in single-line of code. Theming with shadcnui

License

Notifications You must be signed in to change notification settings

ppenter/coolert

Repository files navigation

Coolert

A lightweight alert and confirm library for reactjs and nextjs using Shadcnui. Alert and confirm library for reactjs in single-line of code

Preview

Preview

Getting Started

yarn add coolert

Usage

coolert

Alert component

 coolert({
  title: 'Alert',
  description: 'This is description',
  type: 'info',
 });

Coolfirm

Confirm component

 coolfirm({
   title: 'Confirm',
   description: '',
   type: 'info',
   onConfirm: (value) => {
         console.log("Confirm: ", value);
      },
   onCancel: () => {
         console.log("Cancel");
      },
   });

Theme

You can config it using shadcnui theme. Coolert will adapt your theme to shadcnui.

Built With

  • Vite - The web framework used

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

This project is licensed under the MIT License - see the LICENSE.md file for details