slots

{ slots : 'default slot' | { slotName : 'html', default : 'default slot' } }

Allows you to insert slot content into the component.

{
  slots : {
    header : '<h1>Header</h1>',
    default : '<div>Body</div>'
  }
}

..is equivalent to..

{
  innerHTML : '<h1 slot="header">Header</h1><div>Body</div>'
}

results matching ""

    No results matching ""