
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
react-skeleton-screen
Advanced tools
A skeleton screen is essentially a blank version of a page into which information is gradually loaded
react-skeleton-screen
is essentially a blank
version of a page into which information is gradually loaded.
Skeleton screen | Loaded screen |
---|---|
![]() | ![]() |
Using yarn:
$ yarn add react-skeleton-screen
Then, use as you would anything else:
// using ES6 modules
import { Skeleton } from 'react-skeleton-screen'
// using CommonJS modules
var Skeleton = require('react-skeleton-screen').Skeleton
import React from 'react'
import { Skeleton } from 'react-skeleton-screen'
import 'react-skeleton-screen/build/skeleton.css'
// using scss
//import 'react-skeleton-screen/scss/Skeleton.scss'
const App = ({ isLoading }) => (
isLoading
? <div>
<Skeleton width="160px" height="30px" />
<Skeleton width="70%" height="25px" marginLeft="30px" />
<Skeleton width="60%" height="25px" marginLeft="30px" />
<Skeleton width="110px" height="30px" />
<Skeleton width="55%" height="25px" marginLeft="30px" />
<Skeleton width="140px" height="30px" />
<Skeleton width="55%" height="25px" marginLeft="30px" />
<Skeleton width="65%" height="25px" marginLeft="30px" />
<Skeleton width="90px" height="30px" />
<Skeleton width="80%" height="25px" marginLeft="30px" />
<Skeleton width="65%" height="25px" marginLeft="30px" />
</div>
: <div>Your app has been loaded!</div>
)
export default App
Prop | Type | Default | Description |
---|---|---|---|
width | string | 100% | The width of the Skeleton. Eg: 100px or 20% or 10em |
height | string | 100% | The height of the Skeleton. Eg: 40px |
marginTop | string | 0 | The margin-top of the Skeleton. Eg: 5px |
marginRight | string | 0 | The margin-right of the Skeleton. Eg: 5px |
marginBottom | string | 0 | The margin-bottom of the Skeleton. Eg: 10px |
marginLeft | string | 0 | The margin-left of the Skeleton. Eg: 30px |
FAQs
A skeleton screen is essentially a blank version of a page into which information is gradually loaded
The npm package react-skeleton-screen receives a total of 0 weekly downloads. As such, react-skeleton-screen popularity was classified as not popular.
We found that react-skeleton-screen 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
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.