Skeleton
A Skeleton component is a placeholder UI element that represents the layout of content before it loads. It typically features a grey or light-colored shape mimicking the structure of the actual content (such as text blocks, images, or buttons) to indicate that loading is in progress. Skeleton components enhance user experience by providing a visual cue that content is being fetched, reducing perceived loading times and preventing layout shifts.
Rendered live, with the same build of the library you install.
Skeleton.tsx
import { NSkeleton } from '@nayan-ui/react';const Skeleton = () => {return (<div><div className="space-y-3"><NSkeleton className="h-4 w-3/4 rounded" /><NSkeleton className="h-4 w-1/2 rounded" /><NSkeleton className="h-32 w-full rounded" /></div></div>);};export default Skeleton;
| Name | Type | Default | Details |
|---|---|---|---|
| className | string | ' ' | You can customise by passing tailwind classes. |
| role | string | Optional | ARIA role for accessibility. |
| aria-busy | boolean | Optional | ARIA busy state. |
| aria-live | 'off' | 'polite' | 'assertive' | Optional | ARIA live region. |
Other components solving nearby problems.
- React Skeleton Loader
- Skeleton Loading Component
- React Loading Skeleton
- Skeleton Placeholder
- React Placeholder Loader
- Skeleton Screen Loader
- React Skeleton UI
- Skeleton Loader Animation
- Dynamic Skeleton Loader
- Skeleton Loader Implementation
- Custom Skeleton Loader
- React UI Skeleton Loader
- Skeleton Loading Effect
- Responsive Skeleton Loader
- Skeleton Loader Example
- React Skeleton Loader Library
- CSS Skeleton Loader
- Lightweight Skeleton Loader
- Skeleton Loader Best Practices
- Skeleton Loader for React