Vue Nuxt
Tips & Tricks

A collection of Vue, Nuxt and Vite tips, tricks and good practices.

By default, scoped styles do not affect contents rendered by <slot/>. To explicitly target slot content, use the :slotted pseudo-class.

<style scoped>
:slotted(div) {
  color: red;
}
</style>