toggle menu
backpack-android
androidJvm
switch theme
search in API
backpack-compose
/
net.skyscanner.backpack.compose.switch
/
BpkSwitch
Bpk
Switch
@
Composable
fun
BpkSwitch
(
text
:
String
,
checked
:
Boolean
,
onCheckedChange
:
(
Boolean
)
->
Unit
?
,
modifier
:
Modifier
=
Modifier
,
enabled
:
Boolean
=
true
,
interactionSource
:
MutableInteractionSource
=
remember { MutableInteractionSource() }
)
@
Composable
fun
BpkSwitch
(
checked
:
Boolean
,
onCheckedChange
:
(
Boolean
)
->
Unit
?
,
modifier
:
Modifier
=
Modifier
,
enabled
:
Boolean
=
true
,
interactionSource
:
MutableInteractionSource
=
remember { MutableInteractionSource() }
,
content
:
@
Composable
RowScope
.
(
Boolean
)
->
Unit
)