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

Passing props to message component #28

Open
m3hari opened this issue May 19, 2018 · 2 comments
Open

Passing props to message component #28

m3hari opened this issue May 19, 2018 · 2 comments

Comments

@m3hari
Copy link

m3hari commented May 19, 2018

I have encountered a use case where I want to pass props to the message component.
I haven't seen a way to do that currently.
I was able to work around like the following

[
           this.title !== undefined &&
             h("span", { class: "title" }, [
               h("b", null, [this.title, h("br", null, [])])
             ]),
           this.message !== undefined && this.message,
           this.component !== undefined &&
             h(this.component, { props: this.componentProps }, [])
         ]
       )

I can make a PR if this feature does not conflict with the direction and design decisions of the project.

@amandiobm
Copy link
Contributor

@m3hari pls do a PR for this enhancement.

@m3hari
Copy link
Author

m3hari commented Nov 9, 2021

lol it's been 3 years I don't remember any of this

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

No branches or pull requests

2 participants