Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

554 B
Raw Blame
type PreviewSkeletonColumnProps = { cards: number };

export function PreviewSkeletonColumn({ cards }: PreviewSkeletonColumnProps) {
  const placeholders = Array.from(
    { length: cards },
    (_, position) => `card-${position}`,
  );

  return (
    <div className="flex w-60 shrink-0 flex-col gap-2 rounded-xl border border-border bg-muted/40 p-3 dark:bg-card/90">
      <span className="h-2 w-16 rounded bg-muted" />
      {placeholders.map((id) => (
        <span key={id} className="h-[72px] rounded-lg bg-muted/50" />
      ))}
    </div>
  );
}