Inputs

Input group

Prefix and suffix cells around an input, sharing one focus ring.

Examples

Input group

https:// .app

With icon

⌘K

Anatomy

.input-groupFilled row. Draws the focus ring when anything inside has focus.
> .inputThe control. Takes the remaining width and drops its own fill and ring.
> spanAny other child is a prefix or suffix cell: small, muted, centred, never wrapping. Text, an icon or a <kbd>.

Accessibility

  • The prefix and suffix are not part of the input's name. Label the input itself, and reference a meaningful affix (a unit, a domain) with aria-describedby.
  • Icon cells are decorative; the search icon does not replace a label.
Jump to
ProportionFoundations
MaterialFoundations
PresetsFoundations
ShellLayouts · Application
Container and stacksLayouts · Pages
SplitLayouts · Pages
Grid, bento, masonryLayouts · Pages
Switcher and rowLayouts · Pages
↑↓Move↵OpenescClose