@feizheng/react-absolute-rect

1.1.3 • Public • Published

react-absolute-rect

Absolute rect for react.

installation

npm install -S @feizheng/react-absolute-rect

update

npm update @feizheng/react-absolute-rect

properties

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

usage

  1. import css
@import "~@feizheng/react-absolute-rect/dist/style.scss";

// customize your styles:
$react-absolute-rect-options: ()
  1. import js
import ReactAbsoluteRect from '@feizheng/react-absolute-rect';
import ReactDOM from 'react-dom';
import React from 'react';
import './assets/style.scss';

class App extends React.Component {
  componentDidMount() {}
  render() {
    return (
      <div className="app-container" style={{ height: 400 }}>
        <ReactAbsoluteRect>
          <h1>ReactAbsoluteRect</h1>
          <p>
            <img src="http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg" />
          </p>
          <p>
            <img src="http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg" />
          </p>
          <p>
            <img src="http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg" />
          </p>
          <p>
            <img src="http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg" />
          </p>
          <p>
            <img src="http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg" />
          </p>
          <p>
            <img src="http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg" />
          </p>
          <p>
            <img src="http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg" />
          </p>
          <p>
            <img src="http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg" />
          </p>
          <p>
            <img src="http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg" />
          </p>
          <p>
            <img src="http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg" />
          </p>
          <p>
            <img src="http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg" />
          </p>
          <p>
            <img src="http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg" />
          </p>
          <p>
            <img src="http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg" />
          </p>
          <p>
            <img src="http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg" />
          </p>
        </ReactAbsoluteRect>
      </div>
    );
  }
}

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

documentation

Readme

Keywords

Package Sidebar

Install

npm i @feizheng/react-absolute-rect

Weekly Downloads

12

Version

1.1.3

License

MIT

Unpacked Size

10.5 kB

Total Files

4

Last publish

Collaborators

  • afeiship