Skip to content

caceres97/react-squircle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
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.

Keywords