@slice-so/react
v0.0.36
Published
Slice react functional components
Downloads
158
Maintainers
Readme
Slice react-ui
Installation
npm install @slice-so/react-ui
Usage
import React from 'react';
import { Checkout } from '@slice-so/react-ui';
// import styles
import "@slice-so/react-ui/dist/style.css"
import "@rainbow-me/rainbowkit/styles.css"
const cart = /* ... */;
export const ExampleUsage = () => {
return (
<>
<WagmiConfig config={wagmiConfig}>
<SliceProvider chains={chains} initCart={cart}>
<div>
<div>
<ConnectBlock />
</div>
<Checkout />
</div>
</SliceProvider>
</WagmiConfig>
</>
)
}
export default ExampleUsage;