The Skeleton
component provides placeholder content while the actual content is loading. Below are examples showcasing different skeleton types, including customizable options.
import Skeleton from '../../components/skeleton';
const TextSkeleton: React.FC = () => (
<Skeleton variant="text" width="80%" height="1.5rem" />
);
export default TextSkeleton;
import Skeleton from '../../components/skeleton';
const CardSkeleton: React.FC = () => (
<Skeleton variant="card" width="100%" height="200px" />
);
export default CardSkeleton;
import Skeleton from '../../components/skeleton';
const ImageSkeleton: React.FC = () => (
<Skeleton variant="image" width="100%" height="150px" />
);
export default ImageSkeleton;
import Skeleton from '../../components/skeleton';
const SpinnerSkeleton: React.FC = () => (
<Skeleton variant="spinner" color="#FF5733" width="60px" height="60px" />
);
export default SpinnerSkeleton;