Notification center in React
A bell with an unread badge that opens a notification panel: icons by type, read and unread items told apart, and a "Mark all as read" button.
Here is an excerpt of this component's code in React. The full code is free for members, ready to copy into your project.
This component also comes in
The code in React
import { useEffect, useRef, useState, type ReactNode } from "react";
const icons: Record<string, ReactNode> = {
calendar: (
<>
<rect x="3.5" y="5" width="17" height="15" rx="2" />
<path d="M3.5 10h17M8 3v4m8-4v4" />
</>
),
euro: (
<>
<path d="M17 6.5a6.5 6.5 0 1 0 0 11M4.5 10.5h9m-9 3h9" />Free component: copy it freely, including for commercial projects.
Other toasts and alerts components in React
Toasts and alerts components in React
A banner that warns visitors when they lose the network and announces when it is back, using browser events, with no request.
- Tailwind
- React
- CSS
- WordPress

The four classic interface messages: information, success, warning and error.
- Tailwind
- React
- CSS
- WordPress

Three callouts for technical documentation: note, tip and warning.
- Tailwind
- React
- CSS
- WordPress

A notice warning of a scheduled service interruption, with date, time and impact.
- Tailwind
- React
- CSS
- WordPress

A dashed callout highlighting an offer and its code, with the end date.
- Tailwind
- React
- CSS
- WordPress

An announcement bar at the top of the page with a link and a button to close it.
- Tailwind
- React
- CSS
- WordPress