UI Kit
ReactProvider

React Provider

React Context Provider for LaWallet UI.

Import

import { ReactProvider } from '@lawallet/ui';

Usage

App.tsx
import { ReactProvider } from '@lawallet/ui';
 
function App() {
  return (
    <ReactProvider>
      {/** your app **/}
    </ReactProvider>
  );
}

Parameters

theme

Theme object to inject with context.

  • This parameter is optional. If theme is not sent, the default parameters will be used.
App.tsx
import { createTheme, ReactProvider } from '@lawallet/ui';
 
const theme = createTheme({
  borders: {
    borderRadius: '10px',
  },
});
 
function App() {
  return (
    <ReactProvider theme={theme}>
      {/** your app **/}
    </ReactProvider>
  );
}