BoM Daily / design

components

Input

A text field with optional label, hint, error, and icon slots. The input font is 16px so iOS Safari does not zoom on focus. Touch-first heights; md is 48px.

Basic

Label and hint.

As it should appear on your profile.

With icons

Error

aria-invalid is set and the message is linked via aria-describedby.

Enter a valid email address.

Sizes and disabled

Props

PropTypeDefaultDescription
labelstringnoneVisible label, linked to the input.
hintstringnoneHelper text below the field.
errorstringnoneError message. Overrides hint and sets aria-invalid.
sizeControlSizemdsm 40px, md 48px, lg 56px.
leadingIconReactNodenoneIcon at the start of the field.
trailingIconReactNodenoneIcon at the end of the field.