# react-scrape

> React Typescript library with useful re-usable components and functions.

Latest version **0.1.12** (published 2023-02-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-scrape
pnpm add react-scrape
yarn add react-scrape
bun add react-scrape
```

## Health

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

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

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.12 |
| Published | 2023-02-19 |
| First published | 2023-01-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 3 |
| Unpacked size | 73 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | GaborVxxx |
| Maintainers | gabor_v |
| Keywords | react, Typescript |

## Links

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

## Dependencies (3)

- [cssnano](https://npm.io/package/cssnano.md) ^5.1.14
- [react-icons](https://npm.io/package/react-icons.md) ^4.7.1
- [autoprefixer](https://npm.io/package/autoprefixer.md) ^10.4.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.12 (latest) — 2023-02-19
- 0.1.11 — 2023-02-19
- 0.1.10 — 2023-02-19
- 0.1.9 — 2023-02-19
- 0.1.8 — 2023-02-14
- 0.1.7 — 2023-02-13
- 0.1.6 — 2023-02-12
- 0.1.5 — 2023-02-12
- 0.1.4 — 2023-02-12
- 0.1.3 — 2023-02-12
- 0.1.2 — 2023-02-12
- 0.1.1 — 2023-01-30
- 0.1.0 — 2023-01-29

## README

![](https://github.com/GaborVxxx/react-scrape/workflows/CI/badge.svg?branch=main&event=push)

---

# React-scrape

## Re-usable react Typescript components and functions.

### This project is still in its early days and in development.

### Available components

- SpinnerMultiColor
- Bouncer

---

---

## SpinnerMultiColor

## Installation

Use the package manager [npm](https://www.npmjs.com/) to install react-scrape.

```bash
npm i react-scrape
```

---

## Basic Usage

This is a customisable loading spinner. Zero config out of the box. But flexible and easy to customize.

#### Use case

As all spinner it`s a placeholder while data is in the process or user need to wait for any action.
Mainly loading or fetching data.

```javascript
// import the component and the css file provide the style.
import { SpinnerMultiColor } from 'react-scrape'; //<-- the componenet
import 'react-scrape/dist/react-scrape.cjs.development.css'; //<-- the css provide the default style

// pluge it in anywhere you need a loading spinner.
function App() {
  return (
    <div>
      <SpinnerMultiColor />
    </div>
  );
}
```

### Output

![Spinner gif 1](assests/Spinner%201.gif)

---

## Customize the component

You can use parameters to send additional style in to the component.

- textStyle={ }
- text={ }
- sizeStyle={ }
- firstSectionStyle={ }
- secondSectionStyle={ }
- thirdSectionStyle={ }

NOTE: If you like to change a color of a specific use the following combination.

- firstSectionStyle={{ borderTopColor: ' ' }} <-- the first segment you see is the "borderTopColor" css property.
- secondSectionStyle={{ borderLeftColor: ' ' }} <-- the second segment you see is the "borderLeftColor" css property.
- thirdSectionStyle={{ borderRightColor: ' ' }} <-- the third segment you see is the "borderRightColor" css property.

---

## Example

```javascript
// costumize the component with parameters
function App() {
  return (
    <div>
      <SpinnerMultiColor
        textStyle={{ fontSize: '1rem', fontFamily: 'Times New Roman' }}
        text={'foo'}
        sizeStyle={{ height: '110px', width: '110px' }}
        firstSectionStyle={{ borderTopColor: 'purple' }}
        secondSectionStyle={{ borderLeftColor: 'yellow' }}
        thirdSectionStyle={{ borderRightColor: 'black' }}
      />
    </div>
  );
}
```

You can essentially push any additional css to the component and override its default css. Except the keyframe.

### Output

![Spinner gif 2](assests/Spinner%202.gif)

---

---

## Bouncer

## Installation

Use the package manager [npm](https://www.npmjs.com/) to install react-scrape.

```bash
npm i react-scrape
```

---

## Basic Usage

This is a customisable loading bouncer. Zero config out of the box. But flexible and easy to customize.

#### Use case

As all bouncer it`s a placeholder while data is in the process or user need to wait for any action.
Mainly loading or fetching data.

```javascript
// import the component and the css file provide the style.
import { Bouncer } from 'react-scrape'; //<-- the componenet
import 'react-scrape/src/bouncer/bouncer.css'; //<-- the css provide the default style

// pluge it in anywhere you need a loading bouncer.
function App() {
  return (
    <div>
      <Bouncer />
    </div>
  );
}
```

### Output

![Spinner gif 1](assests/Bouncer%20No%20Props%20gif.gif)

---

## Customize the component

You can use parameters to send additional style in to the component.

- text={ }
- displayText={ }
- textStyle={ }
- containerStyle={ }
- bouncerStyle={ }

NOTE: If you like to remove the text and have the bouncing elements only you have to pass the "off" string value to displayText prop. If you like to add text back just remove the displayText prop as it is.

---

## Example

```javascript
// costumize the component with parameters
function App() {
  return (
    <div>
      <Bouncer
        text={'Foo'}
        textStyle={{ fontWeight: 'bold', color: '#40a35a' }}
        containerStyle={{
          backgroundColor: '#f7f7f7',
          boxShadow: '0px 0px 4px 4px #40a35a',
          borderRadius: '5px',
        }}
        bouncerStyle={{ backgroundColor: '#40a35a', borderRadius: '0%' }}
      />
    </div>
  );
}
```

You can essentially push any additional css to the component and override its default css. Except the keyframe.

### Output

![Spinner gif 2](assests/Bouncer%20with%20props%20gif.gif)

---

### Example for text off

```javascript
// costumize the component with parameters
function App() {
  return (
    <div>
      <Bouncer
        displayText={'off'}
        bouncerStyle={{ backgroundColor: '#40a35a', borderRadius: '0%' }}
      />
    </div>
  );
}
```

### Output

![Spinner gif 2](assests/Bouncer%20No%20Text%20gif.gif)

---

## Contributing

Info coming soon on how to contribute and what rules will be set. So please stay tuned.

---

## License

[MIT](https://choosealicense.com/licenses/mit/)

---

## You can find me

[https://www.thriveoncode.co.uk/](https://www.thriveoncode.co.uk/)

[LinkedIn](https://www.linkedin.com/in/gabor-vaszi-329b54212/)

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