generated from mpetuska/template-kmp-library
-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMDCLineRipple.kt
35 lines (32 loc) · 814 Bytes
/
MDCLineRipple.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package showcases
import androidx.compose.runtime.*
import dev.petuska.katalog.runtime.*
import dev.petuska.katalog.runtime.layout.*
import dev.petuska.kmdc.line.ripple.*
import org.jetbrains.compose.web.attributes.*
import org.jetbrains.compose.web.css.*
import org.jetbrains.compose.web.dom.*
import sandbox.control.*
private class MDCLineRippleVM {
var active by mutableStateOf(false)
}
@Composable
@Showcase(id = "MDCLineRipple")
fun MDCLineRipple() = InteractiveShowcase(
viewModel = { MDCLineRippleVM() },
controls = {
BooleanControl("Active", ::active)
},
) {
Div(attrs = {
style {
display(DisplayStyle.LegacyInlineFlex)
position(Position.Relative)
}
}) {
TextInput("Notice the thick line bellow", attrs = {
disabled()
})
MDCLineRipple(active)
}
}