@primitivexyz/ui
v1.4.0
Published
Downloads
20
Readme
Primitive UI components for React
Install
npm install @primitivexyz/ui
or
yarn add @primitivexyz/ui
Usage
To use Primitive branded components, nest all components in the StylesProvider
. Eg.
import { StylesProvider, Button } from '@primitivexyz/ui'
<StylesProvider>
<Button>Logout</Button>
...
</StylesProvider>
Building and Publishing
Pre-requisites to publishing:
- Ensure you have write access to the npm package: https://www.npmjs.com/package/@primitivexyz/ui/access
Building and Publishing:
- Run
npm run build
oryarn run build
to generate the dist folder. - Run
npm publish