Skip to the page
Tactile UI

Kit parts

Input group

One recess that holds a field and everything that belongs to it. Words that are part of the value but are not typed, such as https:// or a currency, are printed on the floor of the well behind an engraved line; a glyph sits at the start; small keys sit at the end to clear the text, copy it, or show a password.

On this page
  1. Anatomy
  2. Variants
  3. States
  4. Props and options
  5. Usage notes
  6. Accessibility
  7. Related parts

Seats open in 11 days. Want one email that morning?

Anatomy

One recess, drawn with the field’s own well tokens, holds a borderless input that stretches to fill it. Printed words get an engraved line to their side: a dark hairline with the catch light just past it, on the side away from the lamp. Keys are the combobox’s small cap, sitting on the floor of the well, and they go down when pressed. The element only reads the input’s value and type: Clear sets the value and fires input and change; Show turns a password into text and back; Copy uses the clipboard and falls back to selecting the text.

Variants

  • Search · glyph and clear
  • Printed before
  • Printed before and after
  • Password · shown
  • Copied
  • With its action

States

  • Rest
  • Hover
  • Focus
  • Key pressed
  • Error
  • Disabled

Props and options

NameKindDescription
data-input-actionattribute
data-whatattributeNames the field in the key’s name: “Copy endpoint”, “Show secret”.
inputpropertyThe text field inside.
inputActionState(action, state)functionWhat a key shows: hidden, its name, whether it is down.
EscapekeyClears it, and goes no further (a dialog behind stays open) while there was something to clear.

Usage notes

Type in the search and press Escape to clear it. Copy the endpoint: the key says Copied with a green lamp. Show the secret, and its key stays down until you hide it again. Send posts the form; the line under it prints what was sent.

Accessibility

  • Every action key is a real button with a name that says what it does to which field: “Clear the field”, “Copy endpoint”, “Show secret”.
  • Copy says “Copied” in a polite status as well as with its lamp, and says so in words when the browser refuses.
  • Clear puts the focus back in the text, so the next letter typed goes where it should. Escape clears only when there is a clear key.
  • The focus ring is drawn round the whole well, the way the combo field does it, so it is never cut off by the printing.

Field

Text entry in a recess, the label printed above it, and a hint that says how to fix an error.

Combo

One field with its one action in a shared well: subscribe, search, add.

Combobox

A field that filters a long list as you type. It starts as a plain select, so it posts with the form and works without a script; then the options card slides out of a slot under the well, the letters that match print heavier and the chosen option’s lamp is lit. Several choices sit in the well as tags.

Kbd

The key to press, drawn as the key: a small cap on a skirt with a dish worked into its top. Shortcuts come as combos and follow the platform, so ⌘ K on a Mac is Ctrl K elsewhere.