Components In-Depth
Sprig's deeper component model is intentionally small: components are functions, .sprig files compile to functions, and the runtime owns their effects, listeners, refs, and child scopes. Imported .sprig components can receive reactive props, callbacks, default children, and named slots.
This section explains registration, props, events, and slots. Vue-specific features such as fallthrough-attribute inheritance, component v-model, and provide/inject do not exist unless explicitly described as a Sprig API.