Scoop API

scoop:scoop.ui.component:0.1.0

SwitchProps

class SwitchProps

source · line 11
public
public class SwitchProps public constructor(
    public val checked: Binding<Boolean>,
    public val enabled: Boolean = true,
    public val invalid: Boolean = false,
    public val size: SwitchSize = SwitchSize.Default,
    public val style: SwitchStyle = switchStyle(),
    public val theme: ThemeSource? = None,
    public val focus: FocusOptions = FocusOptions(),
    public val labelTarget: FieldTarget? = None,
    public val semantics: ComponentSemantics = ComponentSemantics()
)

constructor constructor

source · line 11
public
constructor(public val checked: Binding<Boolean>, public val enabled: Boolean = true, public val invalid: Boolean = false, public val size: SwitchSize = SwitchSize.Default, public val style: SwitchStyle = switchStyle(), public val theme: ThemeSource? = None, public val focus: FocusOptions = FocusOptions(), public val labelTarget: FieldTarget? = None, public val semantics: ComponentSemantics = ComponentSemantics())