Skip to content
🎴 React component for fitting and positioning images
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
babel.config.js
license
lint-staged.config.js
package-lock.json
package.json
prettier.config.js
readme.md
rollup.config.js

readme.md

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%" />
You can’t perform that action at this time.