About this set
Fields joined to something else, with the borders merged so each group reads as one control. Currency prefix puts a pound sign before the amount and .00 after it, on a tinted add-on; the label carries visually hidden text so screen readers hear the currency too. Domain suffix appends .uicookies.com to a workspace name, and the suffix is linked to the input with aria-describedby so it is read out. Attached button puts an Apply button flush against a discount code field, for short one-step actions. The split field groups card expiry, security code and postcode in a fieldset with a Card details legend, and gives each part its own small visible label rather than relying on placeholders that vanish while typing. The demo fields use inputmode and autocomplete values (cc-exp, cc-csc, postal-code) so phones show a number pad and browsers can fill card details. The plain CSS version is a flex row with the inner corners squared; the Bootstrap version is the stock .input-group with .input-group-text and .btn; the Tailwind version uses rounded-l and rounded-r with border-l-0 and border-r-0.
What’s included
- Currency prefix, domain suffix, attached button and split field
- Split field grouped with fieldset and legend, with a label on every part
- Suffix text linked to its input with aria-describedby
- inputmode and autocomplete set for card and postcode fields
- Bootstrap version uses .input-group, .input-group-text and .btn
Accessibility
Every input has a visible label; the split field's three parts sit in a fieldset whose legend names the group. The domain suffix is read as the input's description, and the currency is repeated in visually hidden label text. Borders reach 3:1 and add-on text 4.5:1. Inputs show a blue border and 3px ring on focus, and the button shows a 2px blue outline on keyboard focus. Transitions are removed under prefers-reduced-motion.
Customise it
In plain CSS change --f-border, --f-addon, --f-muted, --f-btn and --f-radius on .f. In Bootstrap set --bs-border-color, --bs-tertiary-bg and --bs-border-radius on .fx and the --bs-btn-* variables on the button; in Tailwind edit the border-, bg- and rounded- classes.






