Feature Title
Add ref prop in all (wherever applicable) UI components (elements)
Feature Description
Would need to use forwardRef (read about it here: https://react.dev/reference/react/forwardRef)
NOTE: React 19 onwards, forwardRef would NOT be required, but currently we need to use it to forward a ref as ref prop and not something else (like componentRef
A direct reference to UI components from our library will make customisation easier.
Example use cases can be: adjusting a TextArea component's height based on its content (number of rows/columns)
Would also need to ensure:
- Test cases of all such components make use of this ref prop to test if its working as expected
Use Case
No response
Alternatives Considered
No response
Additional Context
No response
Feature Title
Add ref prop in all (wherever applicable) UI components (elements)
Feature Description
Would need to use forwardRef (read about it here: https://react.dev/reference/react/forwardRef)
NOTE: React 19 onwards, forwardRef would NOT be required, but currently we need to use it to forward a ref as
refprop and not something else (likecomponentRefA direct reference to UI components from our library will make customisation easier.
Example use cases can be: adjusting a TextArea component's height based on its content (number of rows/columns)
Would also need to ensure:
Use Case
No response
Alternatives Considered
No response
Additional Context
No response