# react-bootstrap-inputs

> Wrappers around react-bootstrap form inputs

Latest version **0.0.2** (published 2017-01-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-bootstrap-inputs
pnpm add react-bootstrap-inputs
yarn add react-bootstrap-inputs
bun add react-bootstrap-inputs
```

## 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.0.2 |
| Published | 2017-01-14 |
| First published | 2017-01-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Joseph Misiti |
| Maintainers | josephmisiti |
| Keywords | react, bootstrap, inputs, react-bootstrap |

## Links

- npm: https://www.npmjs.com/package/react-bootstrap-inputs
- Repository: https://github.com/mathandpencil/react-bootstrap-inputs
- Homepage: https://github.com/mathandpencil/react-bootstrap-inputs#readme
- Issues: https://github.com/mathandpencil/react-bootstrap-inputs/issues
- npm.io page: https://npm.io/package/react-bootstrap-inputs

## Dependencies (6)

- [babel-cli](https://npm.io/package/babel-cli.md) ^6.18.0
- [babel-jest](https://npm.io/package/babel-jest.md) ^18.0.0
- [react-bootstrap](https://npm.io/package/react-bootstrap.md) ^0.30.7
- [babel-preset-react](https://npm.io/package/babel-preset-react.md) ^6.16.0
- [babel-preset-es2015](https://npm.io/package/babel-preset-es2015.md) ^6.18.0
- [babel-preset-stage-1](https://npm.io/package/babel-preset-stage-1.md) ^6.16.0

## 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.0.2 (latest) — 2017-01-14
- 0.0.1 — 2017-01-13

## README

### react-bootstrap-inputs

This package is a small wrapper around react-bootstrap form components, that provide
`onChange` callbacks to persist data.


### Usage

The high-level `onChange` function call works as follows:

```javascript
onChange(fieldName, value) {
    var change = {};
    change[fieldName] = {$set: value};
    this.props.onSetObj(update(
            this.props.obj, change));
}
```

Via `mapStateToProps`, this function will be passed down to any view using these
components and you can use them as follows:


#### TextInput

```javascript
<TextInput key={idx}
    obj={this.props.currentCommand}
    label={command.label}
    placeholder={command.placeholder}
    onChange={self.onChange}
    name={command.name}/>
```

#### SelectInput

```javascript
<SelectInput key={idx}
    obj={this.props.currentCommand}
    label={command.label}
    choices={command.choices}
    placeholder={command.placeholder}
    onChange={self.onChange}
    name={command.name}/>
```

#### CheckInput

```javascript
<CheckInput key={idx}
    obj={this.props.currentCommand}
    label={command.label}
    placeholder={command.placeholder}
    onChange={self.onChange}
    name={command.name}/>
```

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