@remcostoeten/notifier
A small notification API for React.
Show loading, success, error, and confirmation states without building a new feedback component for every action.
What it replaces
Use it for saves, uploads, background work, and actions that need confirmation.
Live demo
Save the form to see one notification move from loading to success.
Quick start
1'use client'23import { Notifier, notify } from '@remcostoeten/notifier'4import '@remcostoeten/notifier/styles'56export function SaveButton() {7 return (8 <>9 <button onClick={() => notify.success('Settings saved')}>10 Save settings11 </button>12 <Notifier position="bottom-right" colorMode="auto" />13 </>14 )15}API examples
Let the request decide which state appears next.
1notify.promise(saveSettings(), {2 loading: 'Saving settings…',3 success: 'Settings saved',4 error: 'Could not save settings'5})