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 pageshowhide
explore
- Props Declaration & Validation5 questions
- Emitted Events5 questions
- Custom V-Model Binding5 questions
- Fallthrough Attributes4 questions
- Named & Scoped Slots4 questions
- Global vs Local Registration4 questions
- Dynamic & Async Loading4 questions
questions
page 2 of 2In 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 sA 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.
showing 31–31 of 31