- In your React project, install dependency:
If you're using yarn:
yarn add @interchain-ui/react
If you're using npm:
npm i @interchain-ui/react
- Setting up your root layout/ route:
- import the css stylesheet into your root layout:
// This is a global CSS reset, optional
import '@interchain-ui/react/globalStyles';
// This is all components styles
import '@interchain-ui/react/styles';
- wrap the root layout with our
ThemeProvider
and attach the theming class to a container:
import { ThemeProvider, useTheme } from '@interchain-ui/react';
const MyRootLayout = (props) => {
const { theme, themeClass, setTheme } = useTheme();
return (
<ThemeProvider>
<main className={themeClass}>
{props.children}
</main>
</ThemeProvider>
);
};
- You can start to use our components at this point. All components are in: https://interchain-storybook-static.surge.sh/
We will frequently update this page and a nicer components explorer is on the way! Any questions let me know.
ok answering my own question and documenting my process to eventually contribute with the docs and record the jourcey for developers trying to integrate.
wallets are available from:
Once wallets are imported I got an error about missing cosmwasm-stargate
I installed that, then I got error:
I installed Axios, then i got:
I then installed
I got another error:
ok so at this point it seems I'm missing a package or something is wrong with my setup, any advice would be apreciated