Form controls

Inputs, selects, checkboxes and the Field family that wraps them, with every state the app uses, and the controls built outside packages/ui.

Field, Label, description and error

packages/ui/src/components/field.tsx · packages/ui/src/components/label.tsx

Every form field is a Field (vertical, or horizontal for checkboxes) with FieldLabel, an optional FieldDescription and FieldError. The form wrappers in apps/web/components/form (FormInput, FormSelect, FormTextarea, FormCheckbox) put the real controls in this frame. Label is only used through FieldLabel.

Field · vertical

The newsroom's public site.

Field · with description
Field · invalid
Field · horizontal (checkbox), invalid. The error sits beside the label, not under it (noted in Phase 2).
Label on its own

Input

packages/ui/src/components/input.tsx

Text, email, password, search, date and file all use the same Input (h-11).

Empty
Filled
Hover
Focus
Disabled
Error

Types in use

type=search (catalogue, admin lists)
type=password
type=date (vendor contract, membership dates, report periods)
type=file (code pool upload, redemption CSV)

Textarea

packages/ui/src/components/textarea.tsx
Empty
Focus
Disabled
Error
Monospace (code pool paste, redemption codes)

Select

packages/ui/src/components/select.tsx

Radix Select. Only the closed trigger is shown: the open list renders in a portal, in the browser only. Each is shown with its placeholder.

Placeholder
Hover
Focus
Disabled
Error

Checkbox

packages/ui/src/components/checkbox.tsx
Unchecked
Checked
Focus
Disabled
Disabled, checked
Error

Controls outside packages/uiAd-hoc

Built with native elements and their own classes. Shown here as they render in the app (markup taken from the captures).

apps/web/app/admin/(console)/reports/page.tsx · native <select> instead of Select
Discount model
apps/web/features/admin-catalog/components/discount-model-picker.tsx · radio cards: native radio (sr-only) in a hand-styled label; no Radio component
apps/web/features/admin-catalog/components/logo-upload.tsx · native file input with file: classes instead of Input type=file