
Company News
Andrew Becherer Joins Socket as Chief Information Security Officer
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.
@ttoss/notifications
Advanced tools
This module handles notifications in your applications and other ttoss modules.
$ yarn add @ttoss/notifications
# or
$ npm install @ttoss/notifications
Add a provider on top of your application.
import { NotificationsProvider } from '@ttoss/notifications';
ReactDOM.render(
<React.StrictMode>
<NotificationsProvider>
<App />
</NotificationsProvider>
</React.StrictMode>,
document.getElementById('root')
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>
);
};
This modules provides a global toast that you can use on every part of your App this was.
import { useNotifications, TOAST_TYPES } from '@ttoss/notifications';
const Component = () => {
const { toast } = useNotifications();
return (
<div>
<button
onClick={() =>
toast('Toast content', {
type: TOAST_TYPES.SUCCESS,
})
}
>
Toast Success
</button>
</div>
);
};
:::info
:::
FAQs
ttoss notifications module.
The npm package @ttoss/notifications receives a total of 55 weekly downloads. As such, @ttoss/notifications popularity was classified as not popular.
We found that @ttoss/notifications demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.