On this page

InstallationUsageWhat it isAnatomyOrientationThe control's columnIn a narrow placeDescription and info iconOptional, and a badge of its ownErrorWhat it holdsOver a list of choicesSeveral controls, or noneA card's rowKeyboard and screen readersAPI ReferenceFieldRulesDecidedOpen questionsOther systems

Field

What sits around a control: its title, a line of help, and what is wrong. The title names the control, and the help and the error are tied to it.

Timeout
Optional

How long one run may take.

seconds
1<Field title="Timeout" description="How long one run may take." iconTooltip="A run that takes longer is stopped." optional>2  <Input textEnd="seconds" placeholder="300" />3</Field>

Installation

import { Field } from "@catalog-dashboard/components";

Usage

import { Field, Input } from "@catalog-dashboard/components";
<Field title="Name" description="Lowercase letters, numbers and dashes." error={nameError}>
  <Input value={name} onChange={(event) => setName(event.target.value)} />
</Field>

What it is

The one component for a label laid over or beside a control: a form's field and a settings card's row. Several Fields under one title are a FieldGroup. A lone Checkbox or Switch is its own label, and a RadioGroup stands alone: with no title and no group error there is no Field.

Anatomy

Timeout
OptionalPreview

How long one run may take.

seconds
Enter a number from 30 to 3600.
1234567
  1. 1 · Title. 13px medium. The control's name.
  2. 2 · Info icon. iconTooltip. 12px, 6px after the title.
  3. 3 · Optional badge. optional. Neutral, 20px tall.
  4. 4 · Badge. badge: one of the field's own.
  5. 5 · Description. 13px, in the secondary text color, 2px under the title.
  6. 6 · Control. 8px under the title block, or beside it.
  7. 7 · Error. 12px, in the error color, 8px under the control.

Orientation

vertical, the default, puts the title over the control. horizontal puts the title beside the control: a setting row, as in a Card. Inside a FieldGroup a Field takes the group's orientation unless it names its own.

Timeout

How long one run may take.

seconds
Timeout

How long one run may take.

seconds
1<Field title="Timeout" description="How long one run may take.">2  <Input textEnd="seconds" placeholder="300" />3</Field>4<Field orientation="horizontal" title="Timeout" description="How long one run may take.">5  <Input textEnd="seconds" placeholder="300" />6</Field>

The control's column

Beside its title, an Input or a Textarea fills a column: half of the field (the default) or two-thirds. A Select fills it once its trigger is width="fixed"; left alone it hugs its value at the far edge. A list of checkboxes, switches or radios sits in the column. One switch or checkbox with no text of its own takes only its own width, and the title, the description and the badges take the rest of the row.

Region
Issuer URL
Run now

Lets a person start this agent by hand, beside its triggers.

1<Field orientation="horizontal" title="Region">2  <Select defaultValue="eu">3    <SelectTrigger width="fixed"><SelectValue /></SelectTrigger>4    <SelectContent>5      <SelectItem value="eu">Europe</SelectItem>6      <SelectItem value="us">United States</SelectItem>7      <SelectItem value="ap">Asia Pacific</SelectItem>8    </SelectContent>9  </Select>10</Field>11<Field orientation="horizontal" valueColumn="two-thirds" title="Issuer URL">12  <Input placeholder="https://login.example.com" />13</Field>14<Field orientation="horizontal" title="Run now" description="Lets a person start this agent by hand, beside its triggers.">15  <Switch defaultChecked />16</Field>

In a narrow place

A horizontal Field measures itself. Under 416px wide it stacks, the title over the control. Both of these are horizontal; the second is 320px wide.

Timeout

How long one run may take.

seconds
Timeout

How long one run may take.

seconds
1<Field orientation="horizontal" title="Timeout" description="How long one run may take.">2  <Input textEnd="seconds" placeholder="300" />3</Field>4<div className="w-80">5  <Field orientation="horizontal" title="Timeout" description="How long one run may take.">6    <Input textEnd="seconds" placeholder="300" />7  </Field>8</div>

Description and info icon

description is a line of help under the title, in the secondary text color; it can hold a link. iconTooltip puts an info icon after the title that shows its text on hover or focus.

Audience

The value your identity provider puts in the token's aud claim.

1<Field title="Audience" description="The value your identity provider puts in the token's aud claim." iconTooltip="Tokens for any other audience are refused.">2  <Input placeholder="api://dome" />3</Field>

Optional, and a badge of its own

optional adds a neutral Optional badge beside the title: md, 20px, the title line's height. badge takes a Badge of the field's own after it, drawn as given; this one passes md too. When the line is full, the badges go under the title before the title breaks.

Description
Optional
Signing key
Workspace
1<Field title="Description" optional>2  <Input placeholder="What this agent is for." />3</Field>4<Field title="Signing key" badge={<Badge color="info" size="md">Workspace</Badge>}>5  <Input placeholder="key_…" />6</Field>

Error

What is wrong, under the control, 12px in the error color. While error is set the control is marked invalid. The description stays; the error does not replace it.

Timeout

How long one run may take.

seconds
Enter a number from 30 to 3600.
Timeout

How long one run may take.

seconds
Enter a number from 30 to 3600.
1<Field title="Timeout" description="How long one run may take." error="Enter a number from 30 to 3600.">2  <Input textEnd="seconds" value="12" onChange={change} />3</Field>4<Field orientation="horizontal" title="Timeout" description="How long one run may take." error="Enter a number from 30 to 3600.">5  <Input textEnd="seconds" value="12" onChange={change} />6</Field>

What it holds

An Input, a Textarea or a Select: the title names it. Beside a title with no description, the title is centered on an Input or a Select; over a Textarea, or with a description, it stays at the top. Horizontal, one switch with no text of its own is the large one at the far edge. (The Textarea is imported from @dome/ds/components/textarea.)

Name
Region
System prompt
Run now

Can be started by hand.

1<Field orientation="horizontal" title="Name">2  <Input placeholder="billing-sync" />3</Field>4<Field orientation="horizontal" title="Region">5  <Select defaultValue="eu">6    <SelectTrigger width="fixed"><SelectValue /></SelectTrigger>7    <SelectContent>8      <SelectItem value="eu">Europe</SelectItem>9      <SelectItem value="us">United States</SelectItem>10      <SelectItem value="ap">Asia Pacific</SelectItem>11    </SelectContent>12  </Select>13</Field>14<Field orientation="horizontal" title="System prompt">15  <Textarea placeholder="You are a careful assistant." />16</Field>17<Field orientation="horizontal" title="Run now" description="Can be started by hand.">18  <Switch defaultChecked />19</Field>

Over a list of choices

Over checkboxes, switches or radios the Field is the group's title, description and one error; each choice keeps its own label. Two forms are written today, and neither is the rule yet. With htmlFor left out, a CheckboxGroup or a RadioGroup takes the Field's title as its name and is described by its description and error (checked in a browser). With htmlFor={null} the Field is plain markup, and the group is named only by its own aria-label. A SwitchGroup is not named by a Field in either form: give it an aria-label.

Accept tokens from

Tokens from any other source are refused.

Accept tokens from

Tokens from any other source are refused.

1<Field title="Accept tokens from" description="Tokens from any other source are refused.">2  <CheckboxGroup defaultValue={["id"]}>3    <Checkbox value="id">ID tokens</Checkbox>4    <Checkbox value="access">Access tokens</Checkbox>5  </CheckboxGroup>6</Field>7<Field title="Accept tokens from" description="Tokens from any other source are refused." htmlFor={null}>8  <CheckboxGroup aria-label="Accept tokens from" defaultValue={["id"]}>9    <Checkbox value="id">ID tokens</Checkbox>10    <Checkbox value="access">Access tokens</Checkbox>11  </CheckboxGroup>12</Field>

Several controls, or none

By itself the Field finds its one control. A row that holds two controls, or a value and no control, says what the title names with htmlFor: an id, or null for nothing. The Field is then plain markup: nothing is named, described or marked invalid for you.

times
seconds
Created
12 Nov 2026, 09:41
1<Field title="Retry" htmlFor="retry-count">2  <div className="flex gap-2">3    <Input id="retry-count" textEnd="times" placeholder="3" />4    <Input aria-label="Wait between retries" textEnd="seconds" placeholder="30" />5  </div>6</Field>7<Field orientation="horizontal" title="Created" htmlFor={null}>8  <span>12 Nov 2026, 09:41</span>9</Field>

A card's row

row makes the Field a row of a card: the card's inset at its sides, and the same padding above and below, less for a row of text alone than for one that holds a control. The Card draws no rule between rows: here it is divide-y on the card's content. A horizontal FieldGroup's Fields are rows already, and the group rules them itself.

Name
Created
12 Nov 2026, 09:41
Run now

Can be started by hand.

1<Card>2  <CardContent padding="none" className="divide-y">3    <Field row orientation="horizontal" title="Name">4      <Input value="billing-sync" onChange={change} />5    </Field>6    <Field row orientation="horizontal" title="Created" htmlFor={null}>7      <span>12 Nov 2026, 09:41</span>8    </Field>9    <Field row orientation="horizontal" title="Run now" description="Can be started by hand.">10      <Switch defaultChecked />11    </Field>12  </CardContent>13</Card>

Keyboard and screen readers

This is read from the code. It has not been tested with a screen reader.

The title is the control's name. Around one Input, Textarea or Select, the title labels it with no id written by hand. A press on the title puts the focus in the control; it never opens a Select.

The description and the error. Both are tied to the control, and while there is an error the control is marked invalid. The error is not announced by itself when it appears: it is read with the control.

The info icon is a button. It comes before the control in the tab order, and its text shows on focus as well as on hover. With a text title it is named after it ("Timeout details"); otherwise "Details".

Badges are beside the name, not in it. Optional, and a badge of the field's own, are text near the title. They are not part of the control's name.

With htmlFor, you do the tying. The Field is plain markup then: the title is a label for that id (or for nothing), the description is tied to nothing, and you mark a control invalid yourself. In this form the error is an alert, announced when it appears.

API Reference

Field

Besides these, the props of Base UI's Field.Root (name, disabled, invalid…) and of a <div>. The dashboard's SettingRow is this Field with row, and it always passes htmlFor, so it is the plain-markup form.

PropTypeDefaultDescription
titleReactNode—Names the control. Required.
childrenReactNode—The control: an Input, a Textarea, a Select, one switch, or checkboxes, switches or radios with their own text.
orientation"vertical" | "horizontal""vertical"The title over the control, or beside it (stacking under 416px). Inside a FieldGroup, the group's.
valueColumn"half" | "two-thirds""half"How much of a horizontal field the control's column takes.
descriptionReactNode—A line of help under the title.
iconTooltipstring | TooltipSettings—An info icon after the title that explains it on hover or focus.
optionalbooleanfalseAn Optional badge beside the title.
badgeReactNode—A Badge of the field's own after the Optional badge.
errorReactNode—What is wrong, under the control. While set, the control is marked invalid.
rowbooleanfalseA row of a card: the card's inset at its sides and the row's padding above and below. On inside a horizontal FieldGroup.
htmlForstring | null—The id the title is a label for, or null when it names no control. Leave it out around one Input, Textarea or Select. Given, the Field is plain markup.

Rules

Decided

Timeout

How long one run may take.

seconds
DoThe Field lays the title out and ties it to the control.

A label over a control is the Field's title

Decided with the form controls: no label is laid over a control by hand, and a press on the title focuses the control.

Timeout
seconds
Enter a number from 30 to 3600.
DoUnder the control it is about.
Invalid input.
Timeout
seconds
Don’tA banner for one field's problem.

A field's problem is shown under the field

From the design principles (Forms): validation is inline under the field, with no alert banner for a per-field issue.

A narrower control sits at the far edge of its column

Decided with the form controls: in a horizontal Field, checkboxes, radios or a switch narrower than the column sit at its far edge, while an Input fills it.

Run now

Lets a person start this agent by hand, beside its triggers.

DoThe toggle alone. The Field's title and description are its text.

One switch beside its title is a bare toggle at the far edge

Decided by the designer: in a horizontal Field one switch is the exception. It is a bare toggle alone at the far edge, named by the Field's title, with no label or options of its own.

Run now

How this agent may be started.

DoThe title, the description, then the Switch with its own label.
Run now

How this agent may be started.

DoTwo are the same element, twice.

Stacked, one switch is a full Switch under the description

Decided by the designer: stacked, one switch and several are the same element. The Field's title and description come first, then under them a full Switch with its own label (and its description, info icon and badge), once or more. A stacked switch is never beside the Field's title.

No switch before a Field's title

A switch before a title turns a whole FieldGroup or Card on or off. A Field has none.

Open questions

None of these is decided for us. The first two follow from what the Field does beside one switch.

Beside one switch, the text now takes the whole row. Keep it, and for what else?

Open
Ours

One switch or checkbox with no text takes only its own width. A button, a badge or a value on the right still sits in a half column.

Other systems

Not found on the pages read: none shows a setting row with its value at the far edge.

Under one switch on the right, where does its error go?

Open
Ours

Under the switch, in the switch's column. A long error widens that column to half the row again.

Other systems

Not found on the pages read. shadcn shows a switch in a horizontal field, and Polaris's switch puts its error below it.

Do we mark the optional fields, or the required ones?

Open
Ours

The optional ones, with a badge. Required has no mark of its own; a field can pass a Required badge through badge.

Other systems

Atlassian and Primer mark the required ones with an asterisk after the label; Primer even when every field is required, and Atlassian adds a line saying what the asterisk means. Polaris's required shows an indicator.

When does an error first show?

Open
Ours

The Field shows the error it is given. When to give it is each form's own choice today.

Other systems

They disagree. Base UI and Primer check on submit by default, then as the value changes. Atlassian: validate as a field is left. Polaris (its web components): show whether the input is valid as people type.

How is a title worded, and when does a field get a description or an info icon?

Open
Ours

No rule.

Other systems

Primer: aim for three words at most, in sentence case, and help text that does not repeat the label. Atlassian: concise labels without verbs, and helper text only where something needs clearing up.

Stacked or side by side, and one column or two?

Open
Ours

The Field has both orientations, and a Field in a group can name its own. No rule says where each goes.

Other systems

Primer: fields stacked by default, side by side for checkboxes and radios only. Atlassian: labels above the field, and one column.

Over a list of choices: htmlFor null, or left out?

Open
Ours

Both are written today, and this page shows both. Left out, a CheckboxGroup or a RadioGroup takes the Field's title, description and error itself. The catalog's Field controls pass null and name the group by hand.

Other systems

Not a question the other systems have: it is about our own prop.

Other systems

Read for this page: shadcn's Field page; Base UI's Field page (its Form page was not read); Atlassian's Form pages (usage and code) and its Text field usage page; GitHub Primer's Form control page, its accessibility page and its forms pattern; and Shopify Polaris's text field in its web components docs on shopify.dev (the React pages now redirect there). shadcn also has both orientations, and one that switches by width. None of the pages read has an info icon, an Optional badge or a card row built in. What the open questions above cover is left out.

They exposeOursWhy
Validation built in: a rule to run (Base UI, Atlassian) and when to run it (Base UI)AskNot built: ours shows the error it is given.
A message when the value is right (Atlassian, Primer)AskNot built.
The error takes the help text's place (Atlassian)AskOurs keeps both: the description over the control, the error under it.
A list of several errors (shadcn)AskOurs takes one error.
A title hidden from sight (Primer, Polaris)AskNot built.
A rule between fields as its own part (shadcn)AskNot in the ds Field. The dashboard has a separator of its own for setting rows.
Catalog
Foundations
  • Overview
  • Tokens
  • Token usage
  • Typography
  • Icons
Atoms
  • Avatar
  • Badge
  • Button
  • Checkbox
  • Color picker
  • Copy button
  • Icon tooltip
  • Inline code
  • Input
  • Hint
  • Kbd
  • Loader
  • Native select
  • Progress bar
  • Progress ring
  • Radio
  • Select
  • Status dot
  • Switch
  • Text link
  • Textarea
  • Tooltip
  • Truncate
Molecules
  • Accordion
  • Activity chart
  • AI elements
  • Alert
  • Button group
  • Card
  • Code block
  • Combobox trigger
  • Command
  • Context switcher
  • Dropdown menu
  • Empty state
  • Field
  • Field group
  • Filter chip
  • Flow
  • Icon picker
  • Metric card
  • Modal
  • Modal confirmation
  • Pagination
  • Popover
  • Scroll area
  • Sidebar
  • Table
  • Tabs
  • Toggle group
LibraryPublished release