Inline start
- Addons go after the input in the code; align places them.
- Icons are decorative unless they are buttons.
Icon at the start of the field.
Inline end
- An icon that looks pressable must be a real button with a label.
A real button: the eye shows or hides the password.
Block start
- A header names what goes in the field, or holds its tools.
As on the wristband
Header above the input.
Visit note
Header above the textarea.
Block end
- A footer holds counts, units and the send action.
mg
Footer below the input.
0/280
Footer below the textarea.
Icon
- One icon per side; a status icon comes with a word.
- Verified uses the DS success glyph and word in success green.
Text
- Prefixes and suffixes show the format, like $ or .org.
120 characters left
Kbd
- Show a shortcut only where it works.
Dropdown
- A menu in the field changes what the field does or holds.
Spinner
- A spinner always comes with a word or a placeholder that says what is happening.
- Spinners are teal; inside a button they keep the button colours.
Textarea
- Header and footer frame a message; Send sits bottom right.
Seen by your nurse within 4 hours
To: Care team
Custom input
- Any control joins with data-slot="input-group-control".