0.4.2 • Published 2 years ago
pic-ratio-fill v0.4.2
pic-ratio-fill
A material-ui component for displaying images in an aspect ratio. If the image does not fit, the image will be fit ether by height or width so that the entire image is shown without cropping. The areas on left/right ot top/bottom will be filled with the most prominent color from the closest edge.
Install
npm install pic-ratio-fill
Code Use
<PicRatioFill
src="sample2.jpg"
width={330}
height={260}
onChangeColors={onChange}
/>
Example
The following example shows a table with all the functionality: Running Example
0.4.0
2 years ago
0.4.2
2 years ago
0.3.17
4 years ago
0.3.15
4 years ago
0.3.13
4 years ago
0.3.11
4 years ago
0.3.9
4 years ago
0.3.5
4 years ago
0.3.7
4 years ago
0.3.3
4 years ago
0.3.1
4 years ago
0.3.0
4 years ago
0.2.8
4 years ago
0.2.7
4 years ago
0.2.6
4 years ago
0.2.5
4 years ago
0.2.4
4 years ago
0.2.3
4 years ago
0.2.2
4 years ago
0.2.1
4 years ago
0.2.0
4 years ago
0.1.0
4 years ago