# redux-modal-tabs

> Redux modal tabs

Latest version **0.1.1** (published 2019-02-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install redux-modal-tabs
pnpm add redux-modal-tabs
yarn add redux-modal-tabs
bun add redux-modal-tabs
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2019-02-01 |
| First published | 2019-01-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 20.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Thomas Kuipers |
| Maintainers | thomas-kuipers |
| Keywords | redux, react, modal, tabs |

## Links

- npm: https://www.npmjs.com/package/redux-modal-tabs
- Repository: https://github.com/dutchsec/redux-modal-tabs
- Homepage: https://github.com/dutchsec/redux-modal-tabs#readme
- Issues: https://github.com/dutchsec/redux-modal-tabs/issues
- npm.io page: https://npm.io/package/redux-modal-tabs

## Dependencies (1)

- [@types/react-redux](https://npm.io/package/@types/react-redux.md) ^6.0.13

## 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) — 2019-02-01
- 0.1.0 — 2019-02-01
- 0.0.1 — 2019-01-31
- 0.0.0 — 2019-01-31

## README

# Redux Modal Tabs

A sidebar with multiple tabs for projects with React and Redux.

## Dependencies

There are a number of peer dependencies that your project needs to
include:
* react
* react-redux
* redux

## Installation

```bash
npm install redux-modal-tabs
```

## Usage

### 1. Configure the reducer
```js
import { reduxModalTabsReducer } from 'redux-modal-tabs';

export const rootReducer = (history) => combineReducers({
    ...
	reduxModalTabs: reduxModalTabsReducer
	...
});
```

### 2. Import the css (optional)
```js
// in index.tsx or app.tsx, wherever makes most sense for you
import 'redux-modal-tabs/css/style.css';
```

### 3. Opening tabs
```js
import { addModalTab } from 'redux-modal-tabs';

class MyComponent extends React.Component {
    ...

    onClick() {
        const { dispatch } = this.props;

        dispatch(addModalTab(
            'My title',
            <MyContentComponent />
        ));
    }

    ...
}
```

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