Demo
- Label on the right; the whole label is part of the tap target.
- A choice with consequences gets a description under its label.
- A whole card can be the label: title and description inside it.
Your nurse and therapist can see your medications and exercises.
Add a phone number in Settings to turn this on.
Invalid
- The error is written under the label, with the error glyph: never a red box alone.
- Say how to fix it, and what to do if the person is stuck.
Check this box to continue, or call your nurse if anything is unclear.
Basic
- Sentence case, written as what the person agrees to or wants.
- Every checkbox has a label linked by htmlFor.
Description
- The description says who sees what, or what happens next.
Your nurse, therapist and pharmacist can see your medications, exercises and appointments.
Disabled
- Say why it is off, and how to turn it on, right under the label.
- Disabled controls fade with their label; they are not focusable.
Add a phone number in Settings to turn this on.
Group
- Related choices sit in a fieldset with a legend that asks the question.
- Group labels are Regular weight; the legend carries the emphasis.
Table
- The first column selects the row; the header box selects every row.
- Each box is labelled with the name in its row.
- A selected row is tinted; the box still carries the state.
| Name | Role | ||
|---|---|---|---|
| Maria Reyes | Daughter | maria.reyes@example.com | |
| Sam Okafor | Nurse | sam.okafor@example.com | |
| Lena Park | Physical therapist | lena.park@example.com | |
| Priya Shah | Pharmacist | priya.shah@example.com |