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

[docs] Add component as payload example to useDialogs docs #4375

Merged
merged 5 commits into from
Nov 8, 2024

Conversation

bharatkashyap
Copy link
Member

@bharatkashyap bharatkashyap commented Nov 6, 2024

@bharatkashyap bharatkashyap added the docs Improvements or additions to the documentation label Nov 6, 2024
@bharatkashyap bharatkashyap changed the title [docs] Add component as payload example to use-dialogs docs [docs] Add component as payload example to useDialogs docs Nov 6, 2024
@Janpot
Copy link
Member

Janpot commented Nov 6, 2024

I think the ideal example for this use case uses a plain object, with multiple properties inside, one of which can be a react element

@bharatkashyap
Copy link
Member Author

I think the ideal example for this use case uses a plain object, with multiple properties inside, one of which can be a react element

Agree, updated the example

@bharatkashyap bharatkashyap merged commit 2865b4b into mui:master Nov 8, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

useDialogs Make Payload a Node Rather than a String
4 participants