0.0.2 • Published 7 years ago

react-scalable v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Respect Scalable.

npm.io

Demo

https://abouthiroppy.github.io/react-scalable

Install

$ npm i --save react-scalable

Usage

import React from 'react';
import Scalable from 'react-scalable';

const Component = () => (
  <Scalable>
    <h1>Hello!</h1>
  </Scalable>
);

Props

NameDefaultTypeDescription
aligncentercenter | left | rightAn element's horizontal alignment
verticalAligncentercenter | top | bottomAn element's vertical alignment
containerHeightfixedfixed | autowhether the element is fitted within content
minScaleN/Anumberan element's minimum scale
maxScaleN/Anumberan element's maximum scale

Development

$ npm i
$ npm start # start storybook
$ open http://localhost:8080