Skip to content

make transferProps available to users #524

@mbohal

Description

@mbohal

In general the transferProps function is useful for better accesibility while safely keeping the component code short and manageable.

It would be useful to export it so it can be used inside component libraries based on RUI.

I propose:

  1. Move the transferProps.js to src/utils and export it (like classNames)
  2. Create a new documentation page with examples in the Helpers > JS Helpers section (like classNames)
  3. Change the Forwarding HTML Attributes section in each components README.md to link to the new page. This would allow us to also remove examples as they would be provided on the dedicated page.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions