https://kotlinlang.org logo
#getting-started
Title
# getting-started
s

Scott Wilson-Billing

06/16/2021, 4:46 PM
Copy code
@file:JsModule("@headlessui/react")
@file:JsNonModule

import kotlinx.html.RP
import react.*

@JsName("Switch")
external val ReactSwitch: RClass<ReactSwitchProps>


external interface ReactSwitchProps: RProps {
    var checked: Boolean
    var className: String
    var onChange: (Boolean) -> Unit
}