An open API service indexing awesome lists of open source software.

https://github.com/afeiship/react-absolute-rect

Absolute rect for react.
https://github.com/afeiship/react-absolute-rect

absolute react rect

Last synced: 12 months ago
JSON representation

Absolute rect for react.

Awesome Lists containing this project

README

          

# react-absolute-rect
> Absolute rect for react.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```shell
npm install -S @jswork/react-absolute-rect
```

## properties
| Name | Type | Required | Default | Description |
| --------- | ------ | -------- | ------- | --------------------------------------- |
| className | string | false | - | The extended className for component. |
| top | number | false | - | Css style.top(number). |
| right | number | false | - | Css style.right(number). |
| bottom | number | false | - | Css style.bottom(number). |
| left | number | false | - | Css style.left(number). |
| trbl | number | false | 0 | Css style for top, right, bottom, left. |
| smooth | bool | false | false | If open css-behavior smooth. |

## usage
1. import css
```scss
@import "~@jswork/react-absolute-rect/dist/style.css";

// or use sass
@import "~@jswork/react-absolute-rect/dist/style.scss";

// customize your styles:
$react-absolute-rect-options: ()
```
2. import js
```js
import ReactDemokit from '@jswork/react-demokit';
import React from 'react';
import ReactDOM from 'react-dom';
import ReactAbsoluteRect from '@jswork/react-absolute-rect';
import './assets/style.scss';

class App extends React.Component {
render() {
return (


ReactAbsoluteRect














































);
}
}

ReactDOM.render(, document.getElementById('app'));

```

## documentation
- https://afeiship.github.io/react-absolute-rect/

## license
Code released under [the MIT license](https://github.com/afeiship/react-absolute-rect/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/react-absolute-rect
[version-url]: https://npmjs.org/package/@jswork/react-absolute-rect

[license-image]: https://img.shields.io/npm/l/@jswork/react-absolute-rect
[license-url]: https://github.com/afeiship/react-absolute-rect/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-absolute-rect
[size-url]: https://github.com/afeiship/react-absolute-rect/blob/master/dist/react-absolute-rect.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/react-absolute-rect
[download-url]: https://www.npmjs.com/package/@jswork/react-absolute-rect