• Stars
    star
    628
  • Rank 71,541 (Top 2 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created almost 3 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸŒ€ Insert Awesome Shapes into Your React Site with Ease.
preview

React Awesome Shapes

πŸŒ€ Insert Awesome Shapes into Your React Site with Ease.

NodeJS NPM code style: prettier
Netlify Status License Maintenance Website Price

Loved the project? Please consider donating to help it improve!

Consider following DevSense on YouTube.

If you want to discuss about something, then you can ask on official Discord Server.

⭐ Star us on GitHub β€” it helps!

Getting Started 🎬

The easiest way to use one of the shapes from Awesome Shapes is to install the NPM package and import the particular shape to use it.

Install NPM Package

npm install react-awesome-shapes

Import And Use

import { ShapeName } from "react-awesome-shapes";
...
function ShapeComponent(props) {
    return (
        ...
        <ShapeName {...passParametersToCustomise} />
        ...
    );
}

export default ShapeComponent;

The shapes are very easier to import and use wherever you want and in any web framework that uses NPM.
You can set different sizes of different variety of shapes by passing props.

Read the complete in detail documentation in the Usage section.

Usage

Currently, the package contains shapes: Circle, Donut, CircleGrid, Diamond, PolygonCard, Polygon, Star, Cross, Heart, SquareDonut, Arrow, Message.

All of the shapes currently present in the package are made responsive and the responsiveness is customisable too. To do that, one of the prop to each shape component is breakpoints which is an array of numbers. It represents the breakpoints in which you will define the responsiveness. By default, breakpoints are defined as [600, 900, 1200]. So, you can pass array of 4 elements for size prop which corresponds to <=600, 600<size<=900, 900<size<=1200, >1200. Similarly, you can pass other props in form of array if you want to define different sizes for different breakpoints. You can see list of props corresponding to each shape in the respective implementation file linked above with shape.

By default, all the shapes have position: absolute; so that you can define the coordinates to put the shapes to exact position. But you can change the position attribute in case you want.

Basic usage of the Shape in your react site is illustrated on the project website.

License πŸ“„

This project is licensed under the MIT License - see the LICENSE.md file for details. You can use this project for personal as well as commercial purposes. But if you think you have modified the project and built something really good, we will humbly request you to raise the pull request and share with the opensource community.

Contributing πŸ’‘

β€ŒAwesome Shapes is created with the help of what is available for free on the internet and hence it will always be available for free. This makes it an open source project and everyone are welcome to contribute to different aspects of the project.

You may want to contribute on adding new shapes, fixing bugs, improving/refactoring code etc.

If you can help us with these, please don't hesitate to open a pull request or an issue. If you want to know about how to create pull request, then please refer to this youtube playlist.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Ashutosh Hathidara

πŸ’» 🎨 πŸ“– πŸ€” 🚧 πŸ”¬

Sachin Chaurasiya

πŸ“– πŸ’» πŸ€” πŸ“¦

Mohit Khairnar

πŸ€” πŸ’» 🎨 πŸ“–

anaghaachakrapani

🎨 πŸ€”

Aman Sethi

πŸ’»

judy-n

πŸ’»

Julien Bertazzo Lambert

πŸ’»

OM GAWANDE

πŸ’» πŸ€”

Shailesh Parmar

πŸ’»

sskanishk

πŸ’»

Jude

πŸ“–

Bilal Essofyany

πŸ’»

This project follows the all-contributors specification. Contributions of any kind welcome!

References πŸ‘πŸ»

Gatsby Themes by @LekoArts was the biggest inspiration for this project.

More Repositories

1

masterPortfolio

πŸ”₯ The Complete Customizable Software Developer Portfolio Template which lets you showcase your work and provides each and every detail about you as Software Developer.
JavaScript
3,480
star
2

react-liquidswipe

πŸš€ Smooth Liquid Swipe Animation to transition between different components.
JavaScript
402
star
3

react-awesome-loaders

πŸš€ High quality, super responsive and completely customisable Loading Animations to insert into your website with single line of code.
JavaScript
250
star
4

explainable-cnn

πŸ“¦ PyTorch based visualization package for generating layer-wise explanations for CNNs.
Python
217
star
5

truvisory

This project is meant to provide resources to users who want to access good LinkedIn posts which contains resources to learn any Technology, Design, Self-Branding, Motivation etc. You can visit project by:
JavaScript
214
star
6

neuro-symbolic-sudoku-solver

βš™οΈ Solving sudoku using Deep Reinforcement learning in combination with powerful symbolic representations.
Python
67
star
7

Stock-Prediction-using-LSTM

This Project is predicting stocks for 32 companies with error less than 1% using LSTM Networks.
Jupyter Notebook
59
star
8

react-lazy-load

Lazy loading in react
JavaScript
49
star
9

genai-posts

Repository contains LinkedIn posts about Generative AI knowledge sharing, learning resources and research explanations.
30
star
10

ashutosh1919

Python
28
star
11

react-parallax-demo

Demonstration of Parallax animation in React using react-spring
JavaScript
22
star
12

kubernetes-deploy-tutorial

This code is made for my youtube channel and corresponding to video given below
Python
21
star
13

Full_Stack_Web_Development_Course

This repo contains all assignments for Full stack web development course on coursera
JavaScript
18
star
14

birthday-wisher-whatsapp

Automation Flask Schedular to send birthday wishes to your friends on What'sApp
Python
18
star
15

flask_mongodb_dockerized_app

This code is for illustration to build dockerized Flask + MongoDB app as described in my youtube video below.
Python
17
star
16

food-lovers

PHP
14
star
17

docker-ml-tutorial

This project illustrate step by step procedure to start working on docker for Machine Learning projects.
Jupyter Notebook
13
star
18

github-graphql-api-tutorial

The code in this repository is completely illustrated and explained in my youtube video given below
JavaScript
12
star
19

data2vec-pytorch

Ready to run PyTorch implementation of Data2Vec 2.0: Highly efficient self-supervised representation learning for vision, speech and text.
Python
10
star
20

glassmorphism_demo

Demo for creating animated card with glassmorphism effect
JavaScript
9
star
21

mdp-diffusion

Text-guided image editing by manipulating diffusion path without any training.
Python
9
star
22

deeplearning-flask-react-app

This code is for illustrating deployment of end-to-end Deep Learning app in YouTube video given below.
JavaScript
9
star
23

quantum-perceptron

Implementation of Quantum Perceptron: An Artificial Neuron Implemented on an Actual Quantum Processor
Jupyter Notebook
9
star
24

leetcode-problems

Repository contains solved problems on leetcode based on difficulty level
Python
8
star
25

dvc_demo

Code in this repository illustrates DVC Demo and is prepared for the Youtube Video given below.
Python
8
star
26

FaceInterpolation

Exploring latent spaces of Face generation
Python
8
star
27

ashutosh1919.github.io

This is just a build generated of the code of masterPortfolio project
JavaScript
7
star
28

Survival_3D_Game

Survival Game using Unity3D
ShaderLab
6
star
29

consistency-models

Ready to run PyTorch implementation of Consistency Models: One-Step Image Generation & Editing
Shell
6
star
30

Face-Detection

Face Detection Using OpenCV
Jupyter Notebook
4
star
31

FaceGenerationStyleGAN

The objective of this project is to generate end to end Face Generation System using StyleGAN.
Python
4
star
32

Anomaly-Detection-in-Click-Stream-Data

Anomaly Detection in Click stream data of website.
Jupyter Notebook
4
star
33

ml-data-bot

Chatbot which helps you to get important statistics from the data to get insights to build Machine learning, Deep learning and Statistical models
Python
4
star
34

neurostack

The react-app which contains articles and blogs which makes Neurologists life easier professionally.
JavaScript
4
star
35

Facial-Emotion-Recognition

Facial Emotion Recognition
Jupyter Notebook
3
star
36

ChatUpProject

Java
3
star
37

llm-multichoiceqa

Large Language Model for Multiple Choice QA prediction
Python
3
star
38

WeatherBot

This is the bot which will give weather details of any place in the world.
Python
3
star
39

report-curator

Under Construction
TypeScript
3
star
40

context-cluster-pytorch

Ready to run PyTorch implementation of Context-Cluster: Image as Set of Points
Python
3
star
41

grocery-todo

Grocery-TODO list full stack project implemented using ReactJS (Frontend), Flask (Backend) and PostgreSQL (ElephantSQL) database.)
JavaScript
3
star
42

animated_logo_tutorial

Code given in this repository is created during the explanation in my YouTube video given below.
HTML
3
star
43

social-frontend-cloudflare

JavaScript
2
star
44

tissues-image-classification

Classifying tissue images to associated body part.
Jupyter Notebook
2
star
45

poc_workos_fashion_mnist

Python
2
star
46

git-and-opensource

This repository contains the presentation and complete flow of the workshop about git and opensource
1
star
47

poc_workos_regression

1
star
48

react-spring-pager

πŸ”₯ Ready to use one of the best available Animated ViewPager built using React Spring.
JavaScript
1
star
49

sentiment-react

Sample deploy of react app
JavaScript
1
star
50

Image_Compression_ML_Python

Image Compression Implementation
Python
1
star
51

test-repo

description of code
1
star
52

prettier-demo

This is demo to implement prettier in react-app
JavaScript
1
star