jsMain.react.router.dom.useLinkClickHandler.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-react-router-dom-legacy-js
Show all versions of kotlin-react-router-dom-legacy-js
Kotlin wrapper for React Router DOM library
// Automatically generated - do not modify!
@file:JsModule("react-router-dom")
@file:JsNonModule
package react.router.dom
import web.dom.Element
import web.window.WindowTarget
/**
* Handles the click behavior for router `` components. This is useful if
* you need to create custom `` components with the same click behavior we
* use in our exported ``.
*/
external interface ClickHandlerOptions {
var target: WindowTarget?
var replace: Boolean?
var state: history.LocationState?
}
external fun useLinkClickHandler(
to: history.To,
options: ClickHandlerOptions = definedExternally,
): react.dom.events.MouseEventHandler
© 2015 - 2025 Weber Informatics LLC | Privacy Policy