Skip to content

Four-level alerts

The four classic interface messages: information, success, warning and error.

  • Tailwind
  • React
  • CSS
  • WordPress
Open in a new tab

Description

Each level combines a color, a distinctly shaped icon and an explicit heading: the message type never relies on color alone. Contrast meets AA in both light and dark mode.

Code

Loading the code…

The code of this component in

Archive contents

alertes-quatre-niveaux-html-tailwind.zip3 files · 3 Ko

  • index.html4 Ko
  • README.md2 Ko
  • LICENSE.md1 Ko

Tags

Updated on November 30, 2026.

Reviews

No reviews yet.

In the same spirit

  • 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
    Component
  • 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.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Short notifications that appear at the bottom of the screen after an action, then disappear.

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

    • Tailwind
    • React
    • CSS
    • WordPress
    Component