@cosmology-ui/utils
Install
yarn add @chakra-ui^2.4.2 @cosmology-ui/utils
How to use
import ChakraProvider
and our default theme
import { ChakraProvider } from '@chakra-ui/react';
import { defaultTheme, ThemeProvider } from '@cosmology-ui/react';
export default function App({ Component, pageProps }: AppProps) {
return (
<ThemeProvider>
<ChakraProvider theme={defaultTheme}>
<Component {...pageProps} />
</ChakraProvider>
</ThemeProvider>
);
}
then can use
import { ConnectWalletButton } from '@cosmology-ui/utils';
export default function Home() {
return (
<ConnectWalletButton />
);
}