SpxContainer – the “smart loader” that wires your sub-components
If SpxComponent is a node, SpxContainer is a factory that fills the node with the right children the moment it is born.
1 · Why do we need a Container?
Constructor & API
from spx_sdk.components import SpxComponent, SpxContainer, SpxItem
cont = SpxContainer(
name: str, # a label for this container node
definition: Any, # dict-or-list-based structure
parent: SpxComponent, # optional parent in your component tree
type: Optional[type] # optionally filter to only instantiate subclasses of this base
)Generic Mode Examples
Filtered Mode Examples
Edge Cases & Fallbacks
Tips & Best Practices
Last updated

