aptos-web2-library
v1.0.5
Published
A demo on how to create a React UI component library using React, Typescript, Rollup, Storybook, Jest and React testing library.
Downloads
8
Maintainers
Readme
Aptos Web2 Library
Installation
You can install library using npm:
npm install aptos-web2-library
Usage
To use this library in your project, import the components you need from the library and use them in your React components.
import React from 'react';
import { Button } from 'aptos-web2-library';
function App() {
return (
<div>
<Button
text="Membership Perks"
apiKey={YOUR_API_KEY}
apiSecret={YOUR_API_SECRET}
userId={CUSTOMER_USER_ID}
membershipId={MEMBERSHIP_ID}
/>
</div>
);
}
export default App;