1.18.3 • Published 3 years ago
@ttoss/notifications v1.18.3
@ttoss/notifications
About
This module handles notifications in your applications and other ttoss modules.
Getting Started
Install
yarn add @ttoss/{notifications,ui}
Usage
Provider
Add a provider on top of your application.
import { NotificationsProvider } from '@ttoss/notifications';
import { ThemeProvider } from "@ttoss/ui";
ReactDOM.render(
<React.StrictMode>
<ThemeProvider>
<NotificationsProvider>
<App />
</NotificationsProvider>
</ThemeProvider>
</React.StrictMode>,
document.getElementById('root')
Loading
This modules provides a global loading bar that you can use on every part of your App.
import { useNotifications } from '@ttoss/notifications';
const Component = () => {
const { loading, setLoading } = useNotifications();
return (
<div>
<button onClick={() => setLoading(true)} disabled={isLoading}>
Click Me!
</button>
</div>
);
};
1.18.1
3 years ago
1.18.0
3 years ago
1.18.3
3 years ago
1.18.2
3 years ago
1.15.0
3 years ago
1.16.1
3 years ago
1.15.2
3 years ago
1.16.0
3 years ago
1.15.1
3 years ago
1.14.1
3 years ago
1.13.2
3 years ago
1.14.0
3 years ago
1.13.1
3 years ago
1.14.4
3 years ago
1.14.3
3 years ago
1.14.2
3 years ago
1.13.0
3 years ago
1.11.4
3 years ago
1.12.2
3 years ago
1.12.1
3 years ago
1.12.0
3 years ago
1.11.7
3 years ago
1.11.6
3 years ago
1.11.5
3 years ago
1.11.3
3 years ago
1.11.2
3 years ago
1.11.1
3 years ago
1.9.6
3 years ago
1.9.5
3 years ago
1.9.4
3 years ago
1.9.3
3 years ago
1.9.2
3 years ago
1.11.0
3 years ago
1.10.0
3 years ago
1.9.1
3 years ago
1.8.2
3 years ago
1.7.3
3 years ago
1.9.0
3 years ago
1.8.1
3 years ago
1.7.2
3 years ago
1.8.0
3 years ago
1.7.1
3 years ago
1.7.0
3 years ago
1.6.0
3 years ago
1.5.0
3 years ago
1.4.1
3 years ago
1.4.0
3 years ago
0.0.2-alpha.17
4 years ago