New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

coolert-react

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coolert-react

A cool lightweight react alert and confirm library using Tailwind and Radix

latest
Source
npmnpm
Version
0.0.12
Version published
Maintainers
1
Created
Source

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

CPT2402080422-1111x639

Getting Started

yarn add coolert-react

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

FAQs

Package last updated on 08 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts