Fields
To build in the appBrutalist form controls: seven thin wrappers over native elements. The CSS classes .input-brutalist (focus ring, plus .input-error), .checkbox-brutalist (rust when checked, bar when indeterminate), .radio-brutalist (navy) and .switch-brutalist (navy) live in app/globals.css; the look (1px stone-400 border on the text controls, kept on focus, 2px stone-dark on the small marks, surface-muted background, mustard focus outline) is utility classes on the element, as in the catalog.
App: fields (CSS classes + form builder)
Text input
#inputDefault, filled, disabled and error, each in a FormField. Click into a field for the mustard focus ring.
Primary contact email for this account.
Managed by your plan.
Please enter a valid phone number.
Textarea
#textareaFixed height by default (resize-none); resizable allows vertical dragging.
Drag the corner to resize.
Notes can't be blank.
Select
#selectNative select with the input look, appearance-none and a chevron-down Icon overlaid.
Set on the account.
Choose a sales rep.
Checkbox
#checkboxRust when checked. Indeterminate is the select-all state a bulk bar needs (an addition to the catalog).
Radio
#radioNavy when checked. Radios share a name to form a group.
Switch
#switchA native checkbox with role="switch". Navy when on, with a checkmark in the thumb.
Composed form
#formFour FormFields in two columns that collapse to one at phone width, plus a switch and actions. The frame uses the raw Card classes (rounded-lg border-2 border-stone-dark bg-white p-6); swap for the Card unit once it lands.
Props
| Name | Type | Default | Notes |
|---|---|---|---|
| Input.error | boolean | false | Error look only; the message is FormField's |
| Input.disabled | boolean | false | stone-200 fill and border (no edge), stone-light text |
| Input.type | string | text | Plus every native <input> attribute |
| Select.error | boolean | false | |
| Select.children | <option>[] | — | Native select; chevron-down Icon overlaid |
| Textarea.error | boolean | false | |
| Textarea.resizable | boolean | false | resize-y instead of resize-none |
| Textarea.rows | number | 3 | |
| Checkbox.label | ReactNode | — | Omit for a bare input (table select cells) |
| Checkbox.indeterminate | boolean | false | Set on the DOM node via a ref |
| Radio.label | ReactNode | — | Group with a shared name |
| Switch.label | ReactNode | — | Required; role="switch" on a native checkbox |
| Switch.description | ReactNode | — | ui-xs stone-light line under the label |
| FormField.label | ReactNode | — | |
| FormField.htmlFor | string | — | The control's id; seeds the -help / -error message ids |
| FormField.required | boolean | false | Rust asterisk |
| FormField.help | ReactNode | — | ui-xs stone-light under the control |
| FormField.error | ReactNode | — | ui-xs status-error-text; replaces help |
| FormField.disabled | boolean | false | Dims the label |