Skip to content
One Insurance

Components

Dialogs

A focused confirmation surface with one clear decision and a visible way back.

Usage & approach

This is a static dialog appearance, not a modal implementation. In a real application use native dialog.showModal() or an accessible modal controller, move focus inside, contain keyboard focus, support Escape, and return focus to the trigger. Add aria-labelledby and aria-describedby to the real dialog.

Specifications

Overlay
bg-black/40 p-4
Panel
w-full max-w-md rounded-lg bg-white p-6
Actions
flex flex-col-reverse gap-3 sm:flex-row sm:justify-end
Scope
Static appearance only; focus management belongs to the host application.

Confirmation layout

An inline mockup of the overlay and panel. It does not block the documentation.

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.