
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
react-awesome-shapes
Advanced tools
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: Star us on GitHub — it helps!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.
npm install react-awesome-shapes
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.
Currently, the package contains shapes: Circle, Donut, CircleGrid, Square, Diamond, PolygonCard, Triangle, Hexagon, Polygon.
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.
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.
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.
Thanks goes to these wonderful people (emoji key):
Ashutosh Hathidara 💻 🎨 📖 🤔 🚧 🔬 | Sachin Chaurasiya 📖 💻 🤔 📦 | Mohit Khairnar 🤔 💻 🎨 📖 | anaghaachakrapani 🎨 🤔 | Aman Sethi 💻 |
judy-n 💻 | Julien Bertazzo Lambert 💻 | OM GAWANDE 💻 🤔 |
This project follows the all-contributors specification. Contributions of any kind welcome!
Gatsby Themes by @LekoArts was the biggest inspiration for this project.
FAQs
Insert Awesome Shapes into Your React Site with Ease.
The npm package react-awesome-shapes receives a total of 20 weekly downloads. As such, react-awesome-shapes popularity was classified as not popular.
We found that react-awesome-shapes demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.