代码拉取完成,页面将自动刷新
Awesome toasts for React 🍞
一个简洁易用、支持多方向和自定义内容、样式、icon、promise 、手动关闭的 React Tosat 组件,类似于 antd 的 message 和 notification 。
Features | Support |
---|---|
Icon、emoji | ✔️ |
Positions | ✔️ |
Customizable | ✔️ |
Promise | ✔️ |
Pause on hover | ✔️ |
Toggle direction | ✔️ |
Manual close | ✔️ |
SSR | ✔️ |
npm install elegant-toast
or
yarn add elegant-toast
Uasge
import toast from 'elegant-toast';
const message = () => toast('Hello World!');
const App = () => {
return (
<div>
<button onClick={message}>Make me a toast</button>
</div>
);
};
Jay-Ohhh
Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.
Give a ⭐️ if this project helped you!
Copyright © 2022 Jay-Ohhh.
This project is MIT licensed.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。