BetaPublic beta — Read the release notes
Documentation

Switch

Binary toggle with on/off semantics.

Package
@solidiom/switch
Version
0.0.1-next.0
Status
stable

Generated from the package's public source.

API

Rootcomponent

                        Root(props: SwitchRootProps): Element
                      

Props

checked?
Accessor<boolean | undefined>
class?
string
defaultChecked?
boolean
disabled?
boolean
onCheckedChange?
(checked: boolean) => void
style?
string | CSSProperties

children: Element

View source

SwitchRootPropsinterface

Props

checked?
Accessor<boolean | undefined>
class?
string
defaultChecked?
boolean
disabled?
boolean
onCheckedChange?
(checked: boolean) => void
style?
string | CSSProperties

children: Element

View source

SwitchThumbPropsinterface

Props

class?
string
style?
string | CSSProperties

children: Element

View source

Thumbcomponent

                        Thumb(props: SwitchThumbProps): Element
                      

Props

class?
string
style?
string | CSSProperties

children: Element

View source