react-apple-pay-button
v0.0.1-alpha.0
Published
... It's an Apple Pay button. For React. 🤷♀️
Downloads
508
Readme
react-apple-pay-button
An Apple Pay button for React, which tries its best to abide by the Human Interface Guidelines.
🚀 Getting Started
Using Yarn:
yarn add react-apple-pay-button
✍️ Example
import React, { useCallback } from "react";
import { ApplePayButton } from "react-apple-pay-button";
function App() {
const onRequestApplePay = useCallback(() => /* TODO */ []);
return (
<ApplePayButton onClick={onRequestApplePay} theme="light">
{"Subscribe with"}
</ApplePayButton>
);
}
export default App;