open-index/open-npm huggingface dataset:
npm package: @primitivexyz/ui
Latest version: 1.4.0

# 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.

```js
import { StylesProvider, Button } from '@primitivexyz/ui'

<StylesProvider>
  <Button>Logout</Button>
  ...
</StylesProvider>
```

## Building and Publishing

Pre-requisites to publishing:
1) Ensure you have write access to the npm package: https://www.npmjs.com/package/@primitivexyz/ui/access

Building and Publishing:
1) Run `npm run build` or `yarn run build` to generate the dist folder.
2) Run `npm publish`