# radon

> A small, React UI primitive toolkit.

Latest version **1.3.1** (published 2018-09-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install radon
pnpm add radon
yarn add radon
bun add radon
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.1 |
| Published | 2018-09-17 |
| First published | 2015-02-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 129.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ryan Roemer |
| Maintainers | eastridge, formidablelabs, rgerstenberger |

## Links

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

## Dependencies (2)

- [radon-select](https://npm.io/package/radon-select.md) ^3.0.0
- [radon-typeahead](https://npm.io/package/radon-typeahead.md) ^0.5.2

## Recent versions

- 1.3.1 (latest) — 2018-09-17
- 1.3.0 — 2018-09-17
- 1.2.1 — 2018-09-15
- 1.2.0 — 2018-09-15
- 1.1.0 — 2018-09-15
- 1.0.1 — 2018-09-14
- 1.0.0 — 2018-09-13
- 0.1.0 — 2018-09-13
- 0.0.2 — 2018-09-13
- 0.0.1 — 2015-02-24

## README

# Radon Toolkit

A small, React UI primitive toolkit.

## The Radon Family

- [`radon-select`](https://github.com/FormidableLabs/radon-select):
  React select box replacement component
- [`radon-typeahead`](https://github.com/FormidableLabs/radon-typeahead):
  React typeahead component

## Install

```sh
$ npm install --save radon # OR
$ yarn add radon
```

## Usage

### UMD

We provide UMD bundles at:

- `./dist/radon.js`: Development build
- `./dist/radon.min.js`: Production build

Both require that you have external dependencies available on `window`/`global` of:

- `React`
- `ReactDOM`

### Libraries

We provide ESM and CommonJS versions of the Radon Toolkit. Your bundling tool should pick up the appropriate one automagically from our entries for `package.json:main` (CommonJS) and `package.json:module` (ESM).

#### [Select](https://github.com/FormidableLabs/radon-select)

```jsx
import React from 'react';
import ReactDOM from 'react-dom';
import { Select } from 'radon';

class App extends React.Component {
  render() {
    return (
      <div>
        <h3>Basic</h3>
        <Select selectName="foo">
          <Select.Option value="who">Who</Select.Option>
          <Select.Option value="what">What</Select.Option>
        </Select>
      </div>
    );
  }
}

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

#### [Typeahead](https://github.com/FormidableLabs/radon-typeahead)

```jsx
import React from 'react';
import ReactDOM from 'react-dom';
import { Typeahead } from 'radon';

const CAR_BRANDS = [
  'Alfa Romeo',
  'Audi',
  'Bmw',
  'Chevrolet',
  'Chrystler',
  'Dodge',
  'Ferrari',
  'Fiat',
  'Ford',
  'Honda',
  'Hyundai',
  'Jaguar',
  'Jeep',
  'Kia',
  'Mazda',
  'Mercedez-Benz',
  'Mitsubish',
  'Nissan',
  'Peugeot',
  'Porsche',
  'Subaru',
  'Suzuki',
  'Toyota',
  'Volkswagen'
];

class App extends React.Component {
  render() {
    return (
      <div>
        <h3>Car Brands</h3>
        <Typeahead list={CAR_BRANDS} inputComponent={<input />}/>
      </div>
    );
  }
}

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

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