# rdp-components

> Red Panda Components for React

Latest version **0.1.1** (published 2020-04-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install rdp-components
pnpm add rdp-components
yarn add rdp-components
bun add rdp-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.1.1 |
| Published | 2020-04-25 |
| First published | 2020-04-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 151.8 KB |
| Known vulnerabilities | 0 (+4 in 1 direct dependencies) |
| Install scripts | no |
| Author | matt-clarson |
| Maintainers | matt-clarson |
| Keywords | react, component-library, storybook |

## Links

- npm: https://www.npmjs.com/package/rdp-components
- npm.io page: https://npm.io/package/rdp-components

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^4.17.15
- [nanoid](https://npm.io/package/nanoid.md) ^2.1.11

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2020-04-25
- 0.1.0 — 2020-04-25

## README

# Red Panda Components

A component library written in React.  
![](https://github.com/matt-clarson/rdp-components/workflows/CI/badge.svg)

## Usage

See the [docs](https://matt-clarson.github.io/rdp-components)

To use, install the package and import components:

```bash
npm install --save-prod rdp-components
```

```javascript
import React from "react";
import { Button } from "rdp-components";

const App = () => {
  return (
    <div>
      <Button>{"A button!"}</Button>
    </div>
  );
};
```

### Theming

Use the `Theme` component to apply a theme to the components.

```javascript
import React from "react";
import ReactDOM from "react-dom";
import { Theme } from "rdp-components";

import MyApp from "./MyApp";

const App = () => (
  <Theme
    colours={{
      primary: "#00ADB5",
      primaryGradient: "#00B590",
      secondary: "#F8B500",
      error: "red",
      textOnPrimary: "white",
      textOnSecondary: "white",
      textOnError: "white"
    }}
  >
    <App />
  </Theme>
);

ReactDOM.render(<App />, document.getElementById("root"));
```

### Icons

`rdp-components` uses Material Icons. You can find a list of all available icons [here](https://material.io/resources/icons/?style=baseline).

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