Skip to content
One Insurance

Components

Alerts

Put useful feedback next to the task it explains, with a clear next step when something needs attention.

Usage & approach

Use role="status" for non-urgent updates inserted dynamically. Reserve role="alert" for errors that need immediate attention. Static guidance can use an ordinary section. Keep messages actionable and avoid exposing technical provider errors.

Specifications

Layout
rounded-md border p-4
Title
text-sm font-semibold
Description
mt-1 text-base leading-7
Feedback
Use text and semantics alongside color.

Success and validation feedback

A saved draft and an actionable correction message.

HTML + Tailwind CSS · fit to panel

Bring this into your project

Copy the HTML from the code panel. Keep complete utility names in files scanned by Tailwind, retain accessible labels and focus styles, and connect actions to your own application. Preview controls belong to this documentation and are not part of the copied example.

IFRC One Insurance · UI Reference
Tailwind CSS v4.3.3 · Visual examples, ready to adapt.