fun Container.onsSwitch(value: Boolean = false, name: String? = null, label: String? = null, rich: Boolean = false, classes: Set<String>? = null, className: String? = null, init: (OnsSwitch.() -> Unit)? = null): OnsSwitch
DSL builder extension function.
It takes the same parameters as the constructor of the built component.