skip to content

Component Interface

How a Vue component declares and consumes its public contract: props, emitted events, v-model, fallthrough attributes, slots, registration and async loading. Core component-design ground.

part ofVue.jsoverview, primer and where to startread it →
on this pageshow

explore

questions

page 2 of 2

In Vue 3, what is a renderless component built on scoped slots, and when is it still a better choice than a composable?

level: seniorimportance: nice to knowfreq 30%

basics

~20 s

A Vue renderless component holds state and behaviour but renders only a scoped slot, handing its data and functions to the caller's markup. Composables usually do this more cheaply; a renderless component still wins when the reuse includes template structure or slot composition.

open as a page

showing 31–31 of 31