All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lambdaminute.slinkywrappers.reactrouter.Link.scala Maven / Gradle / Ivy

The newest version!
package com.lambdaminute.slinkywrappers.reactrouter

import slinky.core.{ExternalComponent, ReactComponentClass}
import slinky.core.annotations.react

import scala.scalajs.js
import scala.scalajs.js.{|, UndefOr}

case class To(
    pathname: Option[String] = None,
    search: Option[String] = None,
    hash: Option[String] = None,
    state: Option[js.Object]
)

@react object Link extends ExternalComponent {
  case class Props(to: String | To,
                   replace: UndefOr[Boolean] = js.undefined,
                   innerRef: UndefOr[js.Function] = js.undefined)

  override val component = ReactRouterDom.Link

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy