Skip to content
One Insurance

Components

Form fields

Visible labels, readable hints, and precise errors make forms easier to complete.

Usage & approach

Associate every label with its field. Connect hints and errors through aria-describedby. Use aria-invalid="true" for invalid values and keep validation on the server. Placeholder text supplements a label. These examples demonstrate states rather than an integrated validation system.

Specifications

Control
min-h-11 rounded-md border px-3 py-2
Label
text-sm font-medium
Hint
mt-2 text-xs leading-5
Invalid
aria-invalid="true"; border-red-600; described error

Default, invalid, and disabled

A responsive two-column form with all guidance attached to its input.

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.