File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
commonMain/kotlin/com/huanshankeji/compose/material3/ext
jsMain/kotlin/com/huanshankeji/compose/material3/ext Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,9 @@ expect fun SingleChoiceSegmentedButtonRowScope.SegmentedButton(
3030 label : String // @Composable () -> Unit
3131)
3232
33- // TODO add KDoc
33+ /* *
34+ * @see SingleChoiceSegmentedButtonRowScope.SegmentedButton
35+ */
3436@Composable
3537expect fun MultiChoiceSegmentedButtonRowScope.SegmentedButton (
3638 checked : Boolean ,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import org.jetbrains.compose.web.dom.Div
1818private fun CommonSegmentedButton (
1919 selected : Boolean ,
2020 onClick : () -> Unit ,
21- defaultShapeArgs : SegmentedButtonDefaultShapeArgs , // not used here
21+ defaultShapeArgs : SegmentedButtonDefaultShapeArgs , // not used on JS DOM
2222 modifier : Modifier ,
2323 enabled : Boolean ,
2424 icon : @Composable (() -> Unit )? ,
@@ -53,7 +53,7 @@ private fun CommonSegmentedButton(
5353actual fun SingleChoiceSegmentedButtonRowScope.SegmentedButton (
5454 selected : Boolean ,
5555 onClick : () -> Unit ,
56- defaultShapeArgs : SegmentedButtonDefaultShapeArgs , // not used here
56+ defaultShapeArgs : SegmentedButtonDefaultShapeArgs , // not used on JS DOM
5757 modifier : Modifier ,
5858 enabled : Boolean ,
5959 icon : @Composable (() -> Unit )? ,
@@ -66,7 +66,7 @@ actual fun SingleChoiceSegmentedButtonRowScope.SegmentedButton(
6666actual fun MultiChoiceSegmentedButtonRowScope.SegmentedButton (
6767 checked : Boolean ,
6868 onCheckedChange : (Boolean ) -> Unit ,
69- defaultShapeArgs : SegmentedButtonDefaultShapeArgs , // not used here
69+ defaultShapeArgs : SegmentedButtonDefaultShapeArgs , // not used on JS DOM
7070 modifier : Modifier ,
7171 enabled : Boolean ,
7272 icon : @Composable (() -> Unit )? ,
You can’t perform that action at this time.
0 commit comments