# react-interactive-inspect

> A react component to select part of a webpage, given raw html and css

Latest version **1.1.0** (published 2020-02-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-interactive-inspect
pnpm add react-interactive-inspect
yarn add react-interactive-inspect
bun add react-interactive-inspect
```

## 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.1.0 |
| Published | 2020-02-15 |
| First published | 2020-02-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=8 |
| Dependencies | 2 |
| Unpacked size | 1.5 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | jaw9c |
| Maintainers | jaw9c |

## Links

- npm: https://www.npmjs.com/package/react-interactive-inspect
- Repository: https://github.com/jaw9c/react-interactive-inspect
- Homepage: https://github.com/jaw9c/react-interactive-inspect#readme
- Issues: https://github.com/jaw9c/react-interactive-inspect/issues
- npm.io page: https://npm.io/package/react-interactive-inspect

## Dependencies (2)

- [html-react-parser](https://npm.io/package/html-react-parser.md) ^0.10.1
- [styled-components](https://npm.io/package/styled-components.md) ^5.0.1

## Recent versions

- 1.1.0 (latest) — 2020-02-15
- 1.0.0 — 2020-02-15

## README

# react-interactive-inspect

> A react component to select part of a webpage, given the raw html and css as strings

[![NPM](https://img.shields.io/npm/v/react-interactive-inspect.svg)](https://www.npmjs.com/package/react-interactive-inspect) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

![](banner.gif)

## Install

```bash
npm install --save react-interactive-inspect
```

```bash
yarn add react-interactive-inspect
```

## Usage

```tsx
import * as React from "react";

import InteractiveXPathSelector from "react-interactive-inspect";

const htmlData = "<html><ul><li>1</li><li>2</li><li>3</li></ul></html>";
const cssData = "ul { paddingBottom: 10px }";

class Example extends React.Component {
  render() {
    return (
      <InteractiveXPathSelector
        html={htmlData}
        css={cssData}
        onSelect={path => console.log(path)}
      />
    );
  }
}
```

## License

MIT © [jaw9c](https://github.com/jaw9c)

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