ZAO造

TextField

A labeled input for one line of text, with guidance and a clear correction.

Anatomy

Measured parts, with contact expanded 18×.

Measuring component parts…

Preview

Su uses the Quiet instrument direction. Use the mode switcher above to see light and dark.

This name appears in invitations.

Use a workspace email address.

Sizes

Fields together

Region

Edit the fields, then save changes.

Usage

  • Keep the label visible. Use description for information that helps before typing.
  • Set error when validation fails, and tell the person how to correct the value.

API

PropValuesDefault
labelstringrequired
descriptionReactNode—
errorReactNode—
sizesmall | default | largedefault
disabledbooleanfalse

Example

import { TextField } from '@zao/react';

<TextField label="Workspace name" description="This name appears in invitations." />

Accessibility

TextField uses Base UI Field to connect the label, description, and error to its native input. An error marks the input invalid; disabled inputs remain visibly and semantically disabled.