# @feizheng/react-upload-weibo-media

> React upload media.

Latest version **1.0.1** (published 2020-02-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install @feizheng/react-upload-weibo-media
pnpm add @feizheng/react-upload-weibo-media
yarn add @feizheng/react-upload-weibo-media
bun add @feizheng/react-upload-weibo-media
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-02-23 |
| First published | 2020-02-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 12.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | afei |
| Maintainers | afeiship |
| Keywords | react, component |

## Links

- npm: https://www.npmjs.com/package/@feizheng/react-upload-weibo-media
- Repository: https://github.com/afeiship/react-upload-weibo-media
- Homepage: https://github.com/afeiship/react-upload-weibo-media#readme
- Issues: https://github.com/afeiship/react-upload-weibo-media/issues
- npm.io page: https://npm.io/package/@feizheng/react-upload-weibo-media

## Dependencies (9)

- [classnames](https://npm.io/package/classnames.md) ^2.2.6
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2
- [@feizheng/noop](https://npm.io/package/@feizheng/noop.md) ^1.0.0
- [@feizheng/react-input](https://npm.io/package/@feizheng/react-input.md) ^1.0.0
- [@feizheng/react-figure](https://npm.io/package/@feizheng/react-figure.md) ^1.0.1
- [@feizheng/react-if-else](https://npm.io/package/@feizheng/react-if-else.md) ^1.2.0
- [@feizheng/react-checkbox](https://npm.io/package/@feizheng/react-checkbox.md) ^1.0.0
- [@feizheng/react-upload-weibo](https://npm.io/package/@feizheng/react-upload-weibo.md) ^1.0.0
- [@feizheng/webkit-sassui-frame-wrapper](https://npm.io/package/@feizheng/webkit-sassui-frame-wrapper.md) ^1.0.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

- 1.0.1 (latest) — 2020-02-23
- 1.0.0 — 2020-02-17

## README

# react-upload-weibo-media
> React upload media.

## installation
```shell
npm install -S @feizheng/react-upload-weibo-media
```

## update
```shell
npm update @feizheng/react-upload-weibo-media
```

## properties
| Name      | Type   | Default           | Description                           |
| --------- | ------ | ----------------- | ------------------------------------- |
| className | string | -                 | The extended className for component. |
| value     | string | -                 | Default value.                        |
| onChange  | func   | noop              | The change handler.                   |
| size      | array  | ['100%', '160px'] | The media(image) size.                |
| inputable | bool   | false             | If input control use text diretly.    |


## usage
1. import css
  ```scss
  @import "~@feizheng/react-upload-weibo-media/dist/style.scss";
  @import '~@feizheng/webkit-sassui-frame-wrapper';

  // customize your styles:
  $react-upload-weibo-media-options: ()
  ```
2. import js
  ```js
  import ReactUploadWeiboMedia from '@feizheng/react-upload-weibo-media';
  import ReactDOM from 'react-dom';
  import React from 'react';
  import tokenJson from '../.token.json';
  import './assets/style.scss';

  class App extends React.Component {
    state = {
      token: tokenJson.token,
      value: ''
    };

    _onChange = (inEvent) => {
      console.log(inEvent);
    };

    render() {
      return (
        <div className="app-container">
          <ReactUploadWeiboMedia
            onChange={this._onChange}
            value={this.state.value}
            token={this.state.token}
          />
        </div>
      );
    }
  }

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

  ```

## documentation
- https://afeiship.github.io/react-upload-weibo-media/

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