0.0.9 • Published 5 months ago

melden v0.0.9

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
5 months ago

Robust headless React notifications.

Notifications in action

Quickstart guide

melden is designed for you to bring your own notification component. However, by default melden uses a bare-bones notification component animated with Framer Motion.

All you have to do is import NotificationsProvider to start pushing notifications.

import {FC} from "react";
import {NotificationsProvider, useNotifier} from "melden";

/** A button which will push a "Hello world!" notification on click. */
const HelloWorldButton: FC = () => {
	const {notify} = useNotifier();
	const handleClick = () => notify("Hello world!");
	return <button onClick={handleClick}>Push notification</button>;
};

/** Our application allows you to push and interact with notifications. */
const App: FC = () => (
	<NotificationsProvider>
		<HelloWorldButton />
	</NotificationsProvider>
);
0.0.9

5 months ago

0.0.8

5 months ago

0.0.7

5 months ago

0.0.6

5 months ago

0.0.5

5 months ago

0.0.4

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago

0.0.0

5 months ago