Skip to content

fabiochiquezi/Chz-Component-Alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alert

Simple vanilla component that displays a message to the user. See more in the documentation at chiquezi.com/vanilla/alert

🚀 Getting Started

// Install
yarn add @fabiochiquezi/alert or npm install @fabiochiquezi/alert

// Usage
import "@fabiochiquezi/alert/styles.css" // Import the CSS
import { useAlert } from '@fabiochiquezi/alert'

const alert = useAlert()

📡 Example

import { useAlert } from '@fabiochiquezi/alert';

const alert = useAlert()
alert.success("Simple example!", 1000)

✋ Author

Releases

No releases published

Packages

No packages published