Skip to content

Is it possible to create component with custom slot initialization? #20710

Closed Answered by Climenty
Climenty asked this question in Q&A
Discussion options

You must be logged in to vote

Self answering...

const myComponent = h(VAlert,
  {
    icon: 'some-icon',
    variant: 'outlined'
  },
  {
    text: () =>
      h('div', {
        class: 'text-body-2',
        innerHTML: '<span>I want to believe</span>'
      })
  }
)
foo(myComponent)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Climenty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant