Components · Form controls
Field, Label, description and error
oldThe current app, rendered from the real components with sample data.
packages/ui/src/components · apps/web/components
Input
oldThe current app, rendered from the real components with sample data.
packages/ui/src/components · apps/web/components
Textarea
oldThe current app, rendered from the real components with sample data.
packages/ui/src/components · apps/web/components
Select
oldThe current app, rendered from the real components with sample data.
packages/ui/src/components · apps/web/components
Checkbox
oldThe current app, rendered from the real components with sample data.
packages/ui/src/components · apps/web/components
Controls outside packages/ui
oldThe current app, rendered from the real components with sample data.
packages/ui/src/components · apps/web/components
Two-factor sign-in step
oldThe current app, rendered from the real components with sample data.
apps/web/components · apps/web/features/*/components
Inconsistencies
oldThe current app, rendered from the real components with sample data.
packages/ui/src/components · apps/web/components
Not in the app
oldThe current app, rendered from the real components with sample data.
packages/ui/src/components · apps/web/components
Near-duplicates
oldThe current app, rendered from the real components with sample data.
packages/ui/src/components · apps/web/components
Fields
newOne size, 44px. 14px text. Focus is the Button's outline; an error turns the border Knockout. Every input, textarea and select has a placeholder: never leave one blank.
packages/brand-ui/src/components · lib/control.ts
| Filled | Empty | Hover | Focus | Error | Disabled | |
|---|---|---|---|---|---|---|
| Input | ||||||
| Textarea | ||||||
| Select | ||||||
| Combobox | ||||||
| Date range | ||||||
| File input | inkline-codes.csv | inkline-codes.csv | inkline-codes.csv | inkline-codes.csv | inkline-codes.csv |
Field
newLabel, control, then description or error, 8px apart. Beside a checkbox the error goes on the row below, under the label's text.
packages/brand-ui/src/components/field.tsx
Your newsroom's home page.
Enter a full address, e.g. https://…
Accept the terms to continue.
Select and Combobox, open
newThe list opens 4px under the field, as wide as it, with 4px of padding inside. Select for short fixed lists, Combobox (shadcn/ui Command) for vendors.
packages/brand-ui/src/components/select.tsx · combobox.tsx · command.tsx
Checkbox and Radio
new16px with a 44px target. Checked is Purple Frenzy; a checked card adds an inset ring, so nothing moves.
packages/brand-ui/src/components/checkbox.tsx · radio.tsx · radio-card.tsx
Required.
Date range, open
newTwo months of the Calendar (shadcn/ui) under the field. The ends are filled Purple Frenzy, the days between on its tint.
packages/brand-ui/src/components/date-range-field.tsx · calendar.tsx
| Mo | Tu | We | Th | Fr | Sa | Su |
|---|---|---|---|---|---|---|
| Mo | Tu | We | Th | Fr | Sa | Su |
|---|---|---|---|---|---|---|
One-time code
newInputOTP: six 44 × 48px boxes in two groups of three, over one real input, so pasting and autofill work. Fits a 343px phone column.
packages/brand-ui/src/components/input-otp.tsx
Two-step verification
Enter the 6-digit code from your authenticator app.
Two-step verification
Enter the 6-digit code from your authenticator app.
That code didn’t work. Check your app and try again.
Where the old controls go
newEvery old form control and what it becomes.
| Old | New |
|---|---|
Input, Textarea packages/ui/src/components/input.tsx · textarea.tsx | Input, Textarea: 14px text, the Button's focus outline, one size (44px). |
Field, FieldLabel, FieldDescription, FieldError packages/ui/src/components/field.tsx | Field with Label, FieldDescription and FieldError, 8px apart. |
Logo upload's hand-built label features/admin-catalog/components/logo-upload.tsx | Label and FieldDescription. |
Select, FormSelect, FilterSelect (short lists) packages/ui/src/components/select.tsx · components/form/form-select · features/catalog/…/filter-select.tsx | Select with 14px options, opening under the field. apps/web keeps one SelectField (Field, Label, Select, FieldError). |
Vendor pickers: product form, reconciliation, Reports' native select features/admin-catalog/…/product-form.tsx · admin-redemptions/…/reconciliation-form.tsx · app/admin/(console)/reports/page.tsx | Combobox (shadcn/ui Command in a Popover). |
Checkbox packages/ui/src/components/checkbox.tsx | Checkbox, its error on the row below, lined up with the label. |
Discount model radio cards features/admin-catalog/components/discount-model-picker.tsx | RadioGroup with RadioCard; Radio for plain lists. |
Logo file input, CSV inputs (Input type=file) logo-upload.tsx · code-pool-panel.tsx · reconciliation-form.tsx | FileInput: a secondary outline Button and the file's name. |
Period from / to (Reports, Reconciliation) features/admin-reports/components/period-form.tsx · reconciliation-form.tsx | DateRangeField with the Calendar (shadcn/ui). |
Authentication code fields features/auth/components/totp-step.tsx · admin-2fa/…/totp-setup.tsx | InputOTP (shadcn/ui, input-otp): six boxes in two groups of three, one real input underneath. |
Search-and-filter bars catalog-filters.tsx · list-filters.tsx · pool-code-table.tsx | One FilterBar. |
Code fields (font-mono text-sm), “paste codes or CSV” blocks pool-code-table.tsx · code-pool-panel.tsx · reconciliation-form.tsx · api-console.tsx | Stay as they are for now. The upload's error goes under the codes field. |