2.0.1 • Published 9 months ago

@brighthr/component-toast v2.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

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'
})}>
2.0.1

9 months ago

2.0.0

10 months ago

1.0.11

12 months ago

1.0.14

12 months ago

1.0.13

12 months ago

1.0.12

12 months ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago