Join us to discuss the challenges, solutions and best practices for in-house JavaScript code sharing. Tuesday, 12/17 at 10am PT/1pm ET.Sign up here »

react-fitted-img

1.1.1 • Public • Published

react-fitted-img

React functional stateless component for fitting and positioning images.

Usage

import FittedImg from 'react-fitted-img';

<FittedImg src="/path/to/image.png" alt="Thing" fit="cover" position="0 50%" />

Install

npm i react-fitted-img

DownloadsWeekly Downloads

97

Version

1.1.1

License

MIT

Unpacked Size

11 kB

Total Files

5

Last publish

Collaborators

  • avatar