Skip to main content
  1. Docs
  2. Components
  3. Forms

Text field

A labelled text input: the default form row. A label always; a placeholder is only an example.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<input>Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

Playground

Every prop, live, and the code it takes.

We send the invite here.

work-email.tsx
import { TextField } from "@qeetrix/react";

<TextField
  label="Work email"
  placeholder="e.g. priya@acme.in"
  description="We send the invite here."
/>

02

Optional, invalid, disabled, read-only

Optional is marked; required isn't. An error replaces the description while it shows.

This PAN is already registered.

03

Icon and affixes

A leading icon, and text before or after the value: ₹, .qeet.in.

.qeet.in
₹

04

With help

description sits under the field; help opens behind ⓘ, for a setting that needs explaining.

Exactly as your app sends it.

05

Validation

validate checks the value; validationMode="onBlur" says so as you leave the field.

06

In a form

Rows on the grid; autoComplete and type let the browser help.

07

In Hindi

Its words, "(वैकल्पिक)" among them, come from QeetrixProvider.

Next — Text fieldUsage