Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ppenter/coolert
Alert and confirm library for reactjs in single-line of code. Theming with shadcnui
https://github.com/ppenter/coolert
alert confirm react reactjs shadcn-ui storybook tailwind tailwindcss ui-library
Last synced: 11 days ago
JSON representation
Alert and confirm library for reactjs in single-line of code. Theming with shadcnui
- Host: GitHub
- URL: https://github.com/ppenter/coolert
- Owner: ppenter
- License: mit
- Created: 2024-02-07T18:49:40.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-02-23T12:45:14.000Z (9 months ago)
- Last Synced: 2024-10-12T11:02:35.957Z (about 1 month ago)
- Topics: alert, confirm, react, reactjs, shadcn-ui, storybook, tailwind, tailwindcss, ui-library
- Language: TypeScript
- Homepage: https://ppenter.github.io/coolert/
- Size: 4.61 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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](./doc/images/preview.gif)
## Getting Started
```bash
yarn add coolert
```## Usage
### coolert
Alert component
```bash
coolert({
title: 'Alert',
description: 'This is description',
type: 'info',
});
```### Coolfirm
Confirm component
```bash
coolfirm({
title: 'Confirm',
description: '',
type: 'info',
onConfirm: (value) => {
console.log("Confirm: ", value);
},
onCancel: () => {
console.log("Cancel");
},
});
```## Theme
You can config it using [shadcnui theme](https://ui.shadcn.com/themes). Coolert will adapt your theme to shadcnui.
## Built With
- [Vite](https://vitejs.dev/) - The web framework used
## Contributing
Please read [CONTRIBUTING.md](https://gist.github.com/PurpleBooth/b24679402957c63ec426) 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](LICENSE.md) file for details