coryhouse / coryhouse/react-restaurant-scriptpro

Build Input + ErrorMessage shared components

Open
#26 0 comments 0 reactions 0 assignees View on GitHub
enhancement phase-6-admin-forms
Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## Goal
Build reusable `Input` and `ErrorMessage` components with label, touched state, and error styling for form fields.

## Acceptance criteria
- [ ] `Input` accepts label, value, onChange, error, touched
- [ ] Error shows only when `touched && error`
- [ ] `ErrorMessage` renders accessibly (e.g., `aria-live="polite"`)
- [ ] Components used in at least one form

Contributor guide

No contributing guide indexed for this repository

Research direction

No files or tests are named, so first locate the existing form entry point and current component conventions. Build reusable Input and ErrorMessage components, use them in at least one form, and verify the listed props, touched-and-error display rule, and polite accessible error announcement.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.