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.
react-skeleton-state
Advanced tools
Show a skeleton placeholder of your content before your data arrives
Show a loading skeleton of your content animated before your content arrived from e.g. API or lazy loading
npm install --save react-skeleton-state
yarn add react-skeleton-state
import ReactSkeleton from "react-skeleton-state";
<ReactSkeleton width={200} fontSize={"1rem"} variant="text"></ReactSkeleton>
<ReactSkeleton width={50} height={50} variant="circle"></ReactSkeleton>
<ReactSkeleton width={200} fontSize={"1rem"} variant="text"></ReactSkeleton>
<ReactSkeleton width={200} height={200} variant="rectangle"></ReactSkeleton>
Prop | Type | Default | Description |
---|---|---|---|
width | number | 4 | The width of the skeleton PX |
height | number | 4 | The height of your skeleton PX |
variant | string | "rectangle" | Either "rectangle", "circle" or "text" |
fontSize | string | null | fontSize if variant is text |
borderRadius | number | 4 | Border radius of the skeleton PX |
backgroundColorStart | string | "#efefef" | Start color state for animation |
backgroundColorEnd | string | "#e4e4e4" | End color state for animation |
children | reactNode | null | Include any react children |
FAQs
Show a skeleton placeholder of your content before your data arrives
We found that react-skeleton-state 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.