https://github.com/third774/react-image-focus
https://github.com/third774/react-image-focus
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/third774/react-image-focus
- Owner: third774
- Created: 2017-10-29T15:10:04.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-30T05:13:49.000Z (over 8 years ago)
- Last Synced: 2025-04-09T14:05:07.282Z (12 months ago)
- Language: JavaScript
- Size: 9.58 MB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-focal-image
A component for displaying images and intelligently cropping based on a specific focal point.
## Usage
### Displaying Images
```jsx
import React from "react"
import { FocalImage } from "image-focal-picker"
class App extends React.Component {
render() {
const { x, y, imgUrl } = this.state
return (
)
}
}
```