react-squircle
v0.0.8
Published
The easy way to make a Squircle in React Js
Downloads
25
Readme
react-squircle
The easy way to make a Squircle in React Js.
Installation
$ npm install --save react-squircle
Usage
import React, { Component } from 'react';
import ReactSquircle from 'react-squircle';
<ReactSquircle
width="100%"
height="75px"
fit="cover"
imageUrl="link"
/>
Props
| Prop|Description| |--|--| |onError | A support when the link are broken | |width | This prop affects directly the css width | |height | This prop affects directly the css height | |fit | This prop affects directly the css object-fit. More info | |imageUrl | The image. | |className | Your css class | |onClick | If you need a onClick function, well, is right there |
Credits
Ángel Cáceres - Fullstack developer
Issues
If you find a bug, please file an issue on our issue tracker on GitHub.