rc-align
align ui component for react
Last updated 5 years ago by zombiej .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install rc-align 
SYNC missed versions from official npm registry.

rc-align


React Align Component. Wrapper around https://github.com/yiminghe/dom-align.

NPM version build status Codecov gemnasium deps node version npm download

Development

npm install
npm start

Example

http://localhost:8100/examples/

online example: http://react-component.github.io/align/examples/

Feature

  • support ie8,ie8+,chrome,firefox,safari

Keyboard

install

rc-align

Usage

var Align = require('rc-align');
var ReactDOM = require('react-dom');
ReactDOM.render(<Align align={{}} target={function(){}}><div></div></Align>, container);

will align child with target when mounted or align is changed

API

props

name type default description
align Object same with alignConfig from https://github.com/yiminghe/dom-align
onAlign function(source:HTMLElement, align:Object) called when align
target function():HTMLElement || { pageX: number, pageY: number } || { clientX: number, clientY: number } function(){return window;} a function which returned value or point is used for target from https://github.com/yiminghe/dom-align
monitorWindowResize Boolean false whether realign when window is resized

License

rc-align is released under the MIT license.

Current Tags

  • 4.0.15                                ...           latest (2 years ago)

49 Versions

  • 4.0.15                                ...           2 years ago
  • 4.0.14                                ...           2 years ago
  • 4.0.13                                ...           2 years ago
  • 4.0.12                                ...           3 years ago
  • 4.0.11                                ...           3 years ago
  • 4.0.10                                ...           3 years ago
  • 4.0.9                                ...           4 years ago
  • 4.0.8                                ...           4 years ago
  • 4.0.7                                ...           4 years ago
  • 4.0.6                                ...           4 years ago
  • 4.0.5                                ...           4 years ago
  • 4.0.4                                ...           4 years ago
  • 4.0.3                                ...           4 years ago
  • 4.0.2                                ...           4 years ago
  • 4.0.1                                ...           4 years ago
  • 4.0.0                                ...           5 years ago
  • 3.0.0                                ...           5 years ago
  • 3.0.0-rc.1                                ...           5 years ago
  • 3.0.0-rc.0                                ...           5 years ago
  • 3.0.0-alpha.8                                ...           5 years ago
  • 3.0.0-alpha.7                                ...           5 years ago
  • 3.0.0-alpha.6                                ...           5 years ago
  • 3.0.0-alpha.5                                ...           5 years ago
  • 3.0.0-alpha.4                                ...           5 years ago
  • 3.0.0-alpha.3                                ...           5 years ago
  • 3.0.0-alpha.2                                ...           5 years ago
  • 3.0.0-alpha.1                                ...           5 years ago
  • 3.0.0-alpha.0                                ...           5 years ago
  • 2.4.5                                ...           6 years ago
  • 2.4.4                                ...           6 years ago
  • 2.4.3                                ...           6 years ago
  • 2.4.2                                ...           6 years ago
  • 2.4.1                                ...           7 years ago
  • 2.4.0                                ...           7 years ago
  • 2.3.6                                ...           7 years ago
  • 2.3.5                                ...           7 years ago
  • 2.3.4                                ...           8 years ago
  • 2.3.3                                ...           8 years ago
  • 2.3.2                                ...           8 years ago
  • 2.3.1                                ...           8 years ago
  • 2.3.0                                ...           9 years ago
  • 2.2.0                                ...           9 years ago
  • 2.1.0                                ...           9 years ago
  • 2.0.0                                ...           9 years ago
  • 1.2.1                                ...           9 years ago
  • 1.2.0                                ...           9 years ago
  • 1.1.1                                ...           9 years ago
  • 1.1.0                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 19
Last Day 0
Last Week 19
Last Month 0
Dependencies (4)
Dev Dependencies (11)

Copyright 2013 - present © cnpmjs.org | Home |