Text input

A single line of text with a label above it and, when needed, a hint or an error below.

Console
Business name
Kamau Hardware
Shown on your customers' M-Pesa prompt.
Phone number
0712 34
Enter a full Safaricom number, like 0712 345 678.

Guidelines

  • Every input has a visible label; placeholders show an example, never the label.
  • Errors say what's wrong and how to fix it: “Enter a Safaricom number, e.g. 0712 345 678”.
  • Phone numbers are accepted in any common format and stored as 254XXXXXXXXX.

Source

  • console
    components/ui/input.tsx
  • console
    components/ui/field.tsx