New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

rce-align

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rce-align

align ui component for react

latest
Source
npmnpm
Version
2.3.11
Version published
Maintainers
1
Created
Source

rce-align

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

NPM version build status Test coverage gemnasium deps node version npm download

Development

npm install
npm start

Example

http://localhost:8100/examples/

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

Feature

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

Keyboard

install

rce-align

Usage

var Align = require('rce-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

nametypedefaultdescription
alignObjectsame with alignConfig from https://github.com/yiminghe/dom-align
onAlignfunction(source:HTMLElement, align:Object)called when align
targetfunction():HTMLElementfunction(){return window;}a function which returned value is used for target from https://github.com/yiminghe/dom-align
monitorWindowResizeBooleanfalsewhether realign when window is resized
monitorWindowScrollBooleanfalsewhether realign when window is scrolled, do not support old ie before ie 9

License

rce-align is released under the MIT license.

Keywords

react

FAQs

Package last updated on 11 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts