# react-scalable

> Fit the content

Latest version **0.0.2** (published 2017-08-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-scalable
pnpm add react-scalable
yarn add react-scalable
bun add react-scalable
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2017-08-14 |
| First published | 2017-08-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | abouthiroppy |
| Maintainers | about_hiroppy |
| Keywords | scalable, react |

## Links

- npm: https://www.npmjs.com/package/react-scalable
- Repository: https://github.com/abouthiroppy/react-scalable
- Issues: https://github.com/abouthiroppy/react-scalable/issues
- npm.io page: https://npm.io/package/react-scalable

## Dependencies (1)

- [react](https://npm.io/package/react.md) ^15.6.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2017-08-14
- 0.0.1 — 2017-08-13

## README

<div align="center">
  <h1>react-scalable</h1>
</div>

<!-- travis https://travis-ci.org/ -->
<!-- appveyor https://ci.appveyor.com -->
<!-- codecov https://codecov.io/gh -->
<!-- npm version badge: https://badge.fury.io/ -->

Respect [Scalable](https://github.com/ScriptArtist/Scalable).

![](./images/readme.gif)

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

## Install
```sh
$ npm i --save react-scalable
```

## Usage
```javascript
import React from 'react';
import Scalable from 'react-scalable';

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

## Props

| Name | Default | Type | Description |
| ------------- | ------------- | ------------- | ------------- |
| align | center | center &#124; left &#124; right | An element's horizontal alignment |
| verticalAlign | center | center &#124; top &#124; bottom | An element's vertical alignment  |
|containerHeight|fixed| fixed &#124; auto| whether the element is fitted within content |
|minScale| N/A | number | an element's minimum scale |
|maxScale| N/A | number | an element's maximum scale |

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

---
_Source: https://npm.io/package/react-scalable · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
