Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

@brighthr/component-toast

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brighthr/component-toast

To install, type the following into the command line at the root of your project:

latest
npmnpm
Version
2.0.4
Version published
Maintainers
1
Created
Source

ComponentName

Installation

To install, type the following into the command line at the root of your project:

npm i @brighthr/component-toast

placeholder for where toasts will appear

Where you add the Toaster component to the app will be the container that the toast messages will appear in. Recommended that this should be at the root of your app so they appear in the bottom left corner.

import { Toaster } from '@brighthr/component-toast';

<div>
	<Toaster />
</div>;

create a new toast

Import into your file:

import { useToast } from '@brighthr/component-toast';

const { createToast } = useToast();

<Button onClick={() => createToast({
    text: 'message for toast',
    type: 'information'
})}>

FAQs

Package last updated on 07 Jan 2026

Did you know?

Socket

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.

Install

Related posts