up:: Vue Slots


When using slots, the ‘normal rules’ of component styling and props still apply. It doesn’t get forwarded. All props and styles stay within the component.

Named Slots

   <slot name='header'></slot>

Unnamed slots are always the default. Or, use v-slot:default

		<template v-slot:header>
			… html content …

The inner template here is a built-in html components that Vue piggybacks on.

Shorthand: #