1.4.0 • Published 1 year ago
@primitivexyz/ui v1.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.
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