Skip to content

[FEATURE] Add ref prop in all (wherever applicable) UI components (elements) #220

Description

@MihirSachdeva

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions