Images React crop image component Oct 24, 2019 1 min read react-crop-image React crop image component. Install yarn add @wyhaya/react-crop-image Bash Use Component styles use styled-components import Crop from '@wyhaya/react-crop-image' <Crop // Picture url src={this.state.url} // Selected area: x y width height crop={this.state.crop} // Additional content option={<div>Hello</div>} // Default area onInit={(crop, imageWidth, imageHeight) => this.setState({ crop })} // Change area onChange={(crop) => this.setState({ crop })} /> TypeScript interface Props { src: string; width?: number; height?: number; crop: Crop; option?: JSX.Element; onInit?: (crop: Crop, imageWidth: number, imageHeight: number) => void; onChange?: (crop: Crop) => void; className?: string; style?: React.CSSProperties; } TypeScript GitHub wyhaya/react-crop-image?? — Read MoreLatest commit to the undefined branch on unknownDownload as zip ImagesCrop
Button A upload button with image cropper/rotate/zoom for React.js A upload button with image cropper/rotate/zoom for React.js 14 February 2023
Images Image resizer with beautiful UI Built Using React.js Image resizer with beautiful UI Built Using React.js 30 January 2022
Images A simple Image to text website built with Next.js Image to text, fast. Built with the Vercel AI SDK, Claude, and Next.js. 18 April 2024