Skip to content

Passing props to message component #28

Description

@m3hari

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions