About
A React list component for displaying a collection of items. Used to render vertical or horizontal lists with optional dividers and active states.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds List to your project and fits it to your theme.
Code
How List is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { List } from "@/components/ui/tailgrids-list"
import { Exit, Gear1, Home, User2 } from "@tailgrids/icons"
export default function ListPreview() {
return (
<div className="flex flex-col items-center gap-8 w-full">
<List direction="horizontal">
<li>Home</li>
<li data-active="true">About</li>
<li>Services</li>
<li>Contact</li>
</List>
<List>
<li>
<Home className="size-5" />
Dashboard
<span data-type="count">3</span>
</li>
<li data-active="true">
<Gear1 className="size-5" />
Settings
</li>
<li>
<User2 className="size-5" />
Profile
</li>
<li>
<Exit className="size-5" />
Logout
</li>
</List>
</div>
);
}
















