# watson-react-components

> A collection of react components to build web applications using the Watson APIs.

Latest version **0.6.19** (published 2018-12-12) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install watson-react-components
pnpm add watson-react-components
yarn add watson-react-components
bun add watson-react-components
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.19 |
| Published | 2018-12-12 |
| First published | 2016-09-21 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 10 |
| Unpacked size | 2.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 32 |
| Author | IBM Corp. |
| Maintainers | germanattanasio, jzhang300, kognate, nfriedly |

## Links

- npm: https://www.npmjs.com/package/watson-react-components
- Repository: https://github.com/watson-developer-cloud/react-components
- Homepage: https://github.com/watson-developer-cloud/react-components#readme
- Issues: https://github.com/watson-developer-cloud/react-components/issues
- npm.io page: https://npm.io/package/watson-react-components

## Dependencies (10)

- [react](https://npm.io/package/react.md) ^16.6.3
- [numeral](https://npm.io/package/numeral.md) ^2.0.4
- [prismjs](https://npm.io/package/prismjs.md) ^1.15.0
- [map-range](https://npm.io/package/map-range.md) ^0.1.2
- [classnames](https://npm.io/package/classnames.md) ^2.2.6
- [prop-types](https://npm.io/package/prop-types.md) ^15.6.2
- [react-prism](https://npm.io/package/react-prism.md) ^4.3.2
- [react-dropzone](https://npm.io/package/react-dropzone.md) ^3.13.4
- [react-radio-group](https://npm.io/package/react-radio-group.md) ^3.0.3
- [watson-ui-components](https://npm.io/package/watson-ui-components.md) ^0.6.2

## Recent versions

- 0.6.19 (latest) — 2018-12-12
- 0.6.18 — 2018-12-06
- 0.6.17 — 2018-07-20
- 0.6.16 — 2018-01-12
- 0.6.15 — 2018-01-08
- 0.6.13 — 2018-01-04
- 0.6.12 — 2017-10-09
- 0.6.10 — 2017-08-15
- 0.6.9 — 2017-05-10
- 0.6.8 — 2017-05-03
- 0.6.7 — 2017-04-07
- 0.6.3 — 2017-03-02
- 0.6.2 — 2017-03-02
- 0.5.9 — 2017-02-21
- 0.5.8 — 2017-01-27
- … 30 more at https://npm.io/package/watson-react-components/versions

## README

# Watson Developer Cloud React Components

[![Build Status](https://travis-ci.org/watson-developer-cloud/react-components.svg?branch=master)](https://travis-ci.org/watson-developer-cloud/react-components)
[![npm-version](https://img.shields.io/npm/v/watson-react-components.svg)](https://www.npmjs.com/package/watson-react-components)


A collection of [React](https://facebook.github.io/react/) components to write web applications using the Watson APIs.

Documentation: https://watson-developer-cloud.github.io/react-components/

## Getting Started

1. Install the library

    ```
    npm install --save watson-react-components
    ```

2. Add components to your React file where needed:

    Example:
    ```js
    import { Header, Footer, /*...*/} from 'watson-react-components';
    ```

3. Make the assets public. For a Node.js/Express server, the following code should work:

   ```js
   app.use(express.static('./node_modules/watson-react-components/dist/'));
   ```

   For other environments, check out the code and run `npm install; npm run build` and then copy the contents of the `dist/` directory into your static folder.

4. Add a reference to the stylesheet.

   ```html
   <link rel="stylesheet" type="text/css" href="/css/watson-react-components.min.css">
   ```

   Adjust the `href` as necessary if a different location was chosen in step 3


## How to Contribute

1. Install Dependencies

    ```
    npm install
    ```

2. Start the development server

    ```
    npm run dev
    ```
  Changes will refresh the page thanks to [browsersync](https://www.browsersync.io).


3. Run the build command before pushing merge request:

    ```
    npm run build
    ```

### Directory structure

```
.
├── README.md
├── dist
│   ├── components      // ES5 react components
│   ├── css
│   ├── images
│   ├── js
│   └── scss
├── example
│   ├── build
│   ├── index.html
│   └── src
├── gh-pages
│   ├── build
│   ├── images
│   ├── index.html
│   └── src
├── gulpfile.js
├── package.json
├── src
│   ├── components      // React components
│   └── stylesheets     // Sass files
└── static              // static files
    └── images          // images
```
## License

  This sample code is licensed under Apache 2.0.

## Contributing

  See [CONTRIBUTING](.github/CONTRIBUTING.md).

## Open Source @ IBM
  Find more open source projects on the [IBM Github Page](http://ibm.github.io/)

---
_Source: https://npm.io/package/watson-react-components · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
