DSL builder extension function.
It takes the same parameters as the constructor of the built component.
DSL builder extension function for observable state.