Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@linja/react-skeleton
Advanced tools
We all know that without loader in React components, user interface will not complete. We usually show a spinner or a text informing that data is loading... better way to show a user that what our ui look like in a Skeleton of components. react-skeleton is usefull to show a loading in react components.
npm install @linja/react-skeleton --save
OR
yarn add @linja/react-skeleton --save
import React from "react";
import { Skeleton } from "@linja/react-skeleton";
export const GoodLoader = () => {
return <Skeleton />;
};
prop name | type | values | default value | description |
---|---|---|---|---|
rounded | boolean | true/false | false | show a circle instead of rectangle |
color | string | any color code/name | #DDDDDD | color for skeleton |
style | html style attributes | html style attributes | {} | addition style for elements |
import React from "react";
import { LinearGradientSkeleton } from "@linja/react-skeleton";
export const GoodLoader = () => {
return <LinearGradientSkeleton />;
};
prop name | type | values | default value | description |
---|---|---|---|---|
gradientType | string | "dimigo", "skyline", "mango", "bluelagoo" | "dimigo" | themes of linear gradient |
gradientColors | string[] | any color combination ex: ["#ec008c", "#fc6767"] | colors for linear gradient | |
rounded | boolean | true/false | false | show a circle instead of rectangle |
style | html style attributes | html style attributes | {} | addition style for elements |
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
This project is licensed under the MIT License - see the LICENSE file for details
FAQs
Skeleton loading for react
We found that @linja/react-skeleton 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.