@slicekit/react
v0.2.76-beta.1
Published
Slice react hooks
Downloads
154
Maintainers
Readme
Slice react-ui
Installation
npm install @slicekit/react-ui
Usage
import React from 'react';
import { Checkout } from '@slicekit/react-ui';
// import styles
import "@slicekit/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;