You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

smart-skeleton

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smart-skeleton

A flexible and customizable skeleton loading component for React applications.

1.0.2
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Smart Skeleton

A flexible and customizable skeleton loading component for React applications.

Installation

npm install smart-skeleton

Features

  • 🎨 Fully customizable dimensions
  • 🌓 Dark mode support
  • ⚡ Tailwind CSS integration
  • 🔄 Smooth animation
  • 📱 Responsive design
  • 🎯 TypeScript support

Usage

import { SmartSkeleton } from 'smart-skeleton';

// Text skeleton
<SmartSkeleton width="100%" height={20} />

// Avatar skeleton
<SmartSkeleton width={48} height={48} rounded />

// Multiple line skeleton
<SmartSkeleton width="100%" height={20} count={3} gap={8} />

// Card skeleton
<div className="space-y-2">
  <SmartSkeleton width={300} height={200} />
  <SmartSkeleton width={200} height={20} />
  <SmartSkeleton width={100} height={20} />
</div>

Props

PropTypeDefaultDescription
widthstring | number'100%'Width of the skeleton
heightstring | number'1rem'Height of the skeleton
roundedbooleanfalseWhether to show rounded corners
animatebooleantrueWhether to show animation
countnumber1Number of skeleton items
direction'row' | 'column''column'Direction of multiple items
gapstring | number'0.5rem'Gap between multiple items
classNamestring''Additional CSS classes

License

MIT

Keywords

skeleton

FAQs

Package last updated on 24 Mar 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