@neuhq/alert
v1.1.0
Published
A lightweight, customizable alert and confirmation modal library built with pure JavaScript. Easily display styled alerts and handle confirmation prompts with minimal setup.
Readme
@neuhq/alert
A lightweight, customizable alert and confirmation modal library built with pure JavaScript. Easily display styled alerts and handle confirmation prompts with minimal setup.
Features
- Super lightweight (~1KB gzipped)
- No dependencies
- Fully customizable styles
- Simple alert and confirm modals
- Keyboard & click dismiss support
Installation
npm install @neuhq/alertUsage
Alert
import Alert from "@neuhq/alert";
export default App() {
return (
<Alert type="info" message="hi" dismissable={true} show={/* state of the component */} onClose{/* it tells what to do on close */} >
// Avaibles Types are info, error,success, warning
// whatever your ther code
)
}This package is part of the neutronium framework
