What problem does it solve?
Legacy forms built with Chakra UI or @redpanda-data/ui components are inconsistent, hard to maintain, and lack modern accessibility patterns. This Skill migrates them to the modern Redpanda UI Registry Field component family with react-hook-form state management and Zod schema validation.
Core Features & Use Cases
- Legacy-to-Modern Migration: Converts Chakra UI FormControl/FormLabel/FormErrorMessage and @redpanda-data/ui Form patterns into Field, FieldLabel, FieldError, and FieldDescription components.
- Validation Modernization: Replaces Yup schemas with Zod schemas wired through zodResolver, including conditional validation with refine.
- Accessibility Enforcement: Ensures htmlFor/id label association, data-invalid on Field, and aria-invalid on inputs for every refactored field.
- Use Case: When updating a Kafka connector configuration form from Chakra UI to the current design system, the Skill restructures it into FieldSet/FieldGroup sections, swaps validation to Zod, and applies the full accessibility checklist.
Quick Start
Refactor this legacy Chakra UI form to use Redpanda UI Field components with react-hook-form and Zod validation.