Skip to content

Expand FormGroup error messages to include all RHF error types #1072

@frankhock

Description

@frankhock

Description

component: FormGroup

RHF has 6 native validation types:

  • required
  • min
  • max
  • minLength
  • maxLength
  • pattern

atm we only render an error for required. Ideally, we'd keep parity with RHF so devs aren't confused why another error type doesn't render.

User Stories

  • As a [persona], I want [feature/task] so that [benefit/reason].

  • As a dev, I should be able to use any RHF native validations type and see its respective error message via FormGroup.errors prop.

Acceptance Criteria

  • [Criteria 1]
  • [Criteria 2]
  • [Criteria 3]

Screenshots (if applicable)

[Add screenshots, if relevant, to provide visual context.]

Metadata

Metadata

Assignees

Labels

base componentsUpdating or adding common components or base stylesenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions