Skip to content
Docs
List

List

List-row skeleton with avatar dots, text bars, and dual action buttons.

Loading...

Installation

CLI

pnpm dlx shadcn@latest add https://animata.design/r/skeleton/list.json

Manual

Run the following command

mkdir -p components/animata/skeleton && touch components/animata/skeleton/list.tsx

Paste the code

export default function List() {
  return (
    <div className="flex min-h-52 w-52 flex-col gap-3 rounded-md border bg-background p-3 shadow-xl transition-shadow hover:shadow-sm dark:border-zinc-700">
      {Array.from({ length: 6 }).map((_, i) => (
        <div key={`item-${i}`} className="flex w-full items-center justify-between gap-2">
          <div className="h-2 w-2 rounded-md bg-muted" />
          <div className="h-3 w-3 rounded-sm bg-muted" />
          <div className="h-2 flex-1 rounded-md bg-muted" />
        </div>
      ))}
 
      <div className="mt-auto flex w-full justify-end gap-2">
        <button className="w-2/5 rounded-sm bg-green-500 p-2">
          <span className="block h-1.5 rounded-sm bg-muted" />
        </button>
 
        <button className="w-1/5 rounded-sm bg-muted p-2">
          <span className="block h-1.5 rounded-sm bg-gray-300" />
        </button>
      </div>
    </div>
  );
}

Usage

Use while menu lists, settings rows, or inbox items are loading.

import List from "@/components/animata/skeleton/list";
 
<List />

Credits

Built by hari.