Socket
Book a DemoInstallSign in
Socket

react-skeleton-preview

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-skeleton-preview

A flexible and customizable Skeleton loading component for React. Use it to display a placeholder while content is loading — with support for rectangular, circular, and text-shaped skeletons.

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

🦴 react-skeleton-preview

A flexible and customizable Skeleton loading component for React. Use it to display a placeholder while content is loading — with support for rectangular, circular, and text-shaped skeletons.

✨ Features

  • ✅ Customizable width, height, colors, and shapes
  • 🔁 Optional pulse animation
  • 🎯 Supports rectangular, circular, and text variants
  • 🧩 Accepts children (renders them when loading is false)
  • ♿️ Accessible: includes aria-busy and aria-label

📦 Installation

If you're packaging this as an npm module, update this section accordingly. For now, you can use it locally:

npm install react-skeleton-preview

🚀 Usage

import { Skeleton } from 'react-skeleton-preview'
<Skeleton width={60} height={60} variant="circular" pulse=true loading={loading} />
<Skeleton width="80%" height={20} margin="1rem 0" variant="text" loading={loading}>
        <h2>Text</h2>
</Skeleton>

🧪 Development Notes

Pulse animation is injected via JavaScript — no external CSS needed. Works client-side (check for typeof document !== 'undefined')

📄 License

MIT © Patrick Nassar

Have fun :)

Keywords

skeleton

FAQs

Package last updated on 19 Apr 2025

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.