Input
- Floating label (trial, this example only): inside the field, up to 12px on focus or once typed; help text 4px below.
- Every label points at its control with htmlFor.
As it appears on your hospital wristband.
At least 8 characters.
Textarea
- Say what happens to the text, not just what to type.
The nurse reads this before the next visit.
Select
- Say why you ask, in the description.
We use this to word messages to them.
Slider
- Show the value as a number next to the slider, never position alone.
- The track is 8px and the thumb 24px, for caregivers.
0 is no pain, 10 is the worst you can imagine.
Fieldset
- A fieldset groups fields that belong together; the legend names the group.
- Labels sit inside the fields (floating), like the Input example.
Checkbox
- Checkboxes are 20px; the label is part of the tap target.
- A choice with consequences gets a description.
She gets the same reminders on her phone.
Radio
- One choice from a short list; pick a sensible default.
Switch
- A switch acts at once; a checkbox waits for Save.
- Say what turns on, and when.
Wake me for missed doses between 22:00 and 07:00.
Choice card
- The whole card is the label, so the whole card is the target.
- The chosen card gets a teal border and tint.
Field group
- Separate unrelated groups with a separator.
Responsive
- Labels sit beside fields on wide screens and above them on narrow ones.
- Give the controls a minimum width; side by side, an empty textarea collapses.
Validation
- An error shows the octagon and words in Regular; the label stays black, and there is no halo.
- Say what to do next, not only what went wrong.
Enter an email address like name@example.com.
Agree to continue, or choose Not Now.