Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #341

Merged
merged 1 commit into from
Feb 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ A full guide to using the PCUI library can be found [here](https://playcanvas.gi

To install the PCUI NPM module, run the following command:

```
npm install @playcanvas/pcui
```
npm install @playcanvas/pcui --save-dev

If you are using ESM, you can then import each individual element from PCUI. In the example below you can see how the PCUI `Label` component is imported from the PCUI library. The styles for PCUI are then imported into the example. Styles only need to be imported once per project.
You can then import each individual element from PCUI. In the example below, you can see how the PCUI `Label` component is imported from the PCUI library. The styles for PCUI are then imported into the example. Styles only need to be imported once per project.

```javascript
import { Label } from '@playcanvas/pcui';
Expand Down Expand Up @@ -46,7 +44,7 @@ ReactDOM.render(

## Building a UMD bundle

If you need a UMD version of the library so that you for example, it can used with a PlayCanvas Editor project, please refer to our [build guide](BUILDGUIDE.md).
If you need a UMD version of the PCUI library (say, to use it in a PlayCanvas Editor project), please refer to our [build guide](BUILDGUIDE.md).

## Including your own font

Expand Down Expand Up @@ -127,10 +125,8 @@ If you wish to view all components available to you in the library, you can run

Run Storybook as follows:

```
npm install
npm run storybook
```
npm install
npm run storybook

## Documentation

Expand Down
Loading