Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
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
The npm package react-skeleton-state receives a total of 44 weekly downloads. As such, react-skeleton-state popularity was classified as not popular.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.