On this page

Input

When to use Input, how to label it, its states and the tokens it uses.

Draft. Ported from the shadcn-vue Input and restyled with Beehexa tokens on 12 November 2026. Not yet approved. It uses the text-field focus of decision D29.

Input is a one-line box people type into: a store name, an email address, an order number.

When to use

  • For a short value people type, such as a name, an email address, a quantity or a search term.
  • With a visible label above it, and help text under it when the format or the effect is not obvious.

When not to use

  • For text longer than one line, such as a note or a reason. Use Textarea.
  • To pick from a known list. Use Native select or a radio group.
  • For a value people can read but not change, such as an ID or an API key. Show it as text with a copy button beside it, not as an input box (Interaction states › Read-only).
  • To add an icon, a prefix or a button inside the box. Use Input group.

Label, help text and error

  • Put the label above the field, 8 px away (space.100). Labels are nouns with no colon: “Store name”.
  • Put help text under the field in font.body.small, color.text.subtle. Link it with aria-describedby.
  • Put the error under the field too, in color.text.danger. Say what is wrong and how to fix it.
  • Don’t use the placeholder as a label or as help text. It disappears as soon as people type.
  • Use Field or Form to get this layout without writing it yourself.

States

State Edge Fill and text
Rest color.border.bold color.surface, color.text; placeholder color.text.subtlest
Focus color.border.focus, with a 2 px inset ring of the same colour inside it Unchanged
Error (aria-invalid="true") color.border.danger; the focus edge while focused Unchanged
Disabled color.border.disabled color.background.disabled, color.text.disabled

Inputs have no hover colour. The pointer turns into a text cursor, which is enough.

Tokens

Part Tokens
Height size.control.default (32 px)
Corners radius.control
Side padding space.control.x
Text font.body.default
Edge width border.width.default; the focus inset ring is border.width.focused
Change of state motion.duration.fast, motion.easing.standard
  • Field: label, help text and error around any control.
  • Input group: icons, text and buttons inside the box.
  • Textarea: text longer than one line.