Last active
August 15, 2024 22:48
-
-
Save steinybot/4fd2769d42fa895e78e20a2a4c84e7a7 to your computer and use it in GitHub Desktop.
Slinky external components
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package stripe | |
import slinky.core.ExternalComponent | |
import slinky.core.annotations.react | |
import scala.scalajs.js | |
import scala.scalajs.js.annotation.JSImport | |
import scala.scalajs.js.| | |
@react | |
object CardElement extends ExternalComponent { | |
override type Props = CardElementProps | |
override val component: String | js.Object = CardElementComponent | |
} | |
@js.native | |
@JSImport("@stripe/react-stripe-js", "CardElement") | |
object CardElementComponent extends js.Object |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment