Brand Guide

Components

Joined field

A control and an input that share one border, such as a currency and an amount.

Default

A select joined to an input inside an InputGroup, with a 1px divider between them. The outer border shows focus, whichever part has it.

Your base salary, before bonus and equity.

With text at the end

An InputGroupAddon holds text or an icon inside the border. Pressing it focuses the input.
per year

With an icon at the start

Invalid

The red border goes round the whole group.

Disabled

Read-only

The leading value is plain text, and a lock sits at the end.
GBP (£)

Set by Northwind on the role.

Best practices

  • Use a joined field for any control and input that make one answer, such as a currency and an amount. The phone input is built the same way.
  • The group is the field. Hover, focus, error, disabled and read-only show on the outer border, whichever part caused them, and the parts' own focus styles are hidden.
  • Give the leading control joinedLeadingClasses and a width, and an aria-label, since the field's label names the input.
  • FieldControl goes round the input, not the group. The group takes its error, disabled and read-only states from the input.
  • An input from another library joins the group by taking data-slot="input-group-control", as the currency input on the application form does.
  • A read-only joined field shows the leading value as plain text, with no chevron, and a lock at the end.