Skip to content

An open source design system that's fully customizable and agent ready

TypeScript
693 B
Raw Blame
// Copyright (c) Meta Platforms, Inc. and affiliates.

'use client';

import {Skeleton} from '@astryxdesign/core/Skeleton';
import {HStack, VStack} from '@astryxdesign/core/Layout';

export default function SkeletonTableRowSkeleton() {
  return (
    <VStack gap={2}>
      {[0, 1, 2, 3].map(rowIndex => (
        <HStack key={rowIndex} gap={4} vAlign="center">
          <Skeleton width={50} height={16} index={rowIndex * 4} />
          <Skeleton width={180} height={16} index={rowIndex * 4 + 1} />
          <Skeleton width={100} height={16} index={rowIndex * 4 + 2} />
          <Skeleton width={80} height={16} index={rowIndex * 4 + 3} />
        </HStack>
      ))}
    </VStack>
  );
}