bcgov / platform-services-registry

Platform services OCP project registry
https://registry.developer.gov.bc.ca/
Apache License 2.0
9 stars 13 forks source link

Generic Input component #2827

Closed junminahn closed 1 month ago

junminahn commented 6 months ago

Description

Create a generic Input component to ensure consistent UI and behavior for form input elements across the pages.

Technical Details

The following components will be required:

  1. FormTextInput: A generic input component that handles both active and disabled states with different logic.
  2. HookFormTextInput: A wrapper around FormTextInput that integrates with react-hook-form using useFormContext for data binding.

Definition of Done (DOD)

junminahn commented 1 month ago

@funtigr https://dev-pltsvc.apps.silver.devops.gov.bc.ca/examples/ui/text-input

funtigr commented 1 month ago

Now we have a common component for input fields:

image.png