⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
Forms and Inputs Rules (coss)
Use this when implementing fields, input groups, validation states, and form examples.
Core Rules
- For form-bound controls, default to
Fieldcomposition (Field,FieldLabel,FieldDescription,FieldError) instead of standalone inputs. - Always specify
typeon input-like controls where relevant (type="text",type="email", etc.). - Always specify
typeon buttons (button,submit, orreset) instead of relying on browser defaults. - Preserve accessible labelling:
- visible label association (
Label,htmlFor,id) aria-labelwhen there is no visible label.
- visible label association (
- Keep validation signaling aligned between container and control (
aria-invalid, related field semantics).
Input Group Rule
- In
InputGroup, placeInputGroupAddonafterInputGroupInputorInputGroupTextareain DOM order to preserve focus behavior.
Input OTP Rule
- Keep
maxLengthsynchronized with renderedInputOTPSlotcount.
Textarea Rule
- coss
Textareaalready uses Base UI field control semantics internally; in normal form flows, useTextareadirectly insideFieldand avoid manualFieldControlrender wiring unless a custom control implementation is truly needed.
Do / Don't
// Do
<Field>
<FieldLabel>Email</FieldLabel>
<Input type="email" />
</Field>
<InputGroup>
<InputGroupInput type="text" />
<InputGroupAddon>{/* ... */}</InputGroupAddon>
</InputGroup>
// Don't
<Input placeholder="Email" />
<InputGroup>
<InputGroupAddon>{/* ... */}</InputGroupAddon>
<InputGroupInput type="text" />
</InputGroup>
Further reading
- Base UI Forms handbook:
https://base-ui.com/react/handbook/forms.md