Documentation
Components
Skeleton

Skeleton

The Skeleton displays placeholder shapes for various UI elements. It helps improve the user experience by indicating that content is loading without causing abrupt layout shifts.

Installation

Install the package

npm i @start-base/start-ui

Add the styles

To use the React form elements styles in a Next.js project, import the styles in your layout.tsx file.

app/layout.tsx
import "@start-base/start-ui/styles.css";

Import the component

import SkeletonParagraph from '@start-base/start-ui/SkeletonParagraph';
import SkeletonTable from '@start-base/start-ui/SkeletonTable';
import SkeletonList from '@start-base/start-ui/SkeletonList';
import SkeletonInput from '@start-base/start-ui/SkeletonInput';
import SkeletonImage from '@start-base/start-ui/SkeletonImage';
import SkeletonCard from '@start-base/start-ui/SkeletonCard';
import SkeletonButton from '@start-base/start-ui/SkeletonButton';
import SkeletonAvatar from '@start-base/start-ui/SkeletonAvatar';

Usages

Avatar Skeleton

Button Skeleton

Card Skeleton

Image Skeleton

Input Skeleton

List Skeleton

Table Skeleton

Paragraph Skeleton

API

NameTypeDefaultVariantsDescription
childrenstringChildren of the skeleton
widthstring100%Width of the skeleton
heightstring100%Height of the skeleton
linesnumber1Number of lines
itemCountnumber1Number of item
rowsnumber1Number of rows
columnsnumber1Number of columns
sizestring100%Size of the skeleton