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 Textarea component #2828

Closed junminahn closed 1 month ago

junminahn commented 6 months ago

Description

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

Technical Details

The following components will be required:

  1. FormTextarea: A generic input component that handles both active and disabled states with different logic.
  2. HookFormTextarea: A wrapper around FormTextarea 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/textarea

funtigr commented 1 month ago

Now we have the common component for text areas:

image.png