@leapwallet/leap-ui
v0.1.35
Published
Leap Wallet's design system for React
Downloads
7
Readme
Leap UI
Leap Wallet's design system for React. Only Chromium based browsers are supported.
- Docs
- Changelog
- To view a previous version's docs, download the relevant release's
docs.zip
asset, unzip it, and openindex.html
in your browser.
Installation
- Since this package is privately published, you'll need to authenticate to the registry first.
- Create a personal access token with the
repo
andread:packages
scopes. - Log in to the registry using the token you just generated as the password:
yarn login --registry https://npm.pkg.github.com --scope @leapwallet
. - Now, you can install the package as you normally would have:
yarn add @leapwallet/leap-ui
Usage
Wrap your app in the LeapUi
theme provider, and use the components:
import { LeapUiTheme, Buttons } from '@leapwallet/leap-ui';
export default function App(): ReactElement {
return (
<LeapUiTheme themeName={ThemeName.DARK}>
<Buttons.Generic>The world is at a point where we have more crypto whales than actual whales.</Buttons.Generic>
</LeapUiTheme>
);
}