Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to use rawProps with list of components below #641

Closed
AlekseyManetov opened this issue Jul 28, 2022 Discussed in #636 · 1 comment
Closed

Add possibility to use rawProps with list of components below #641

AlekseyManetov opened this issue Jul 28, 2022 Discussed in #636 · 1 comment
Assignees

Comments

@AlekseyManetov
Copy link
Collaborator

Discussed in #636

Originally posted by NatatkaValikowsky July 26, 2022
Hi! We need to add HTML attributes to all components in our project to use it in auto tests.

In this components we cannot use rawProps property:

  • Data Tables
  • File Upload
  • Paginator
  • Picker List
  • Rating
  • Slider Rating
  • Text Placeholder
  • Time Picker

Do you plan to add rawProps to this components? How we can help to deal with it?

@izy-13
Copy link
Collaborator

izy-13 commented Aug 12, 2022

Added rawProps to all components except DataTable because DataTable needs a container node that can receive rawProps, but DataTable doesn't because DataTable returns React.Fragment

But you can pass your props to the DataTable wrapper node like in the example - https://codesandbox.io/s/uui-forked-3uvb0o?file=/Example.tsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants