1.0.1 • Published 4 years ago
elegant-toast v1.0.1
🎨 Features
一个简洁易用、支持多方向和自定义内容、样式、icon、promise 、手动关闭的 React Tosat 组件,类似于 antd 的 message 和 notification 。
| Features | Support |
|---|---|
| Icon、emoji | ✔️ |
| Positions | ✔️ |
| Customizable | ✔️ |
| Promise | ✔️ |
| Pause on hover | ✔️ |
| Toggle direction | ✔️ |
| Manual close | ✔️ |
| SSR | ✔️ |
🚀 Quick Start
npm install elegant-toastor
yarn add elegant-toastUasge
import toast from 'elegant-toast';
const message = () => toast('Hello World!');
const App = () => {
return (
<div>
<button onClick={message}>Make me a toast</button>
</div>
);
};👔 Author
Jay-Ohhh
- Website: Jay-Ohhh (Jay-Ohhh) · GitHub
- Github: @Jay-Ohhh
🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check issues page(Issues · Jay-Ohhh/rolib-cli · GitHub). You can also take a look at the contributing guide.
✨ Show your support
Give a ⭐️ if this project helped you!
🍺 参考
📝 License
Copyright © 2022 Jay-Ohhh.
This project is MIT licensed.