The easy way to make a Squircle in React Js.
$ npm install --save react-squircle
import React, { Component } from 'react';
import ReactSquircle from 'react-squircle';
<ReactSquircle
width="100%"
height="75px"
fit="cover"
imageUrl="link"
/>
| Prop | Description |
|---|---|
| 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 |
Ángel Cáceres - Fullstack developer
If you find a bug, please file an issue on our issue tracker on GitHub.