Skip to content

Instantly share code, notes, and snippets.

@steinybot
Last active August 15, 2024 22:48
Show Gist options
  • Save steinybot/4fd2769d42fa895e78e20a2a4c84e7a7 to your computer and use it in GitHub Desktop.
Save steinybot/4fd2769d42fa895e78e20a2a4c84e7a7 to your computer and use it in GitHub Desktop.
Slinky external components
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