TailGrids

List

Forms

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>
  );
}

Dependencies

More by TailGrids

View all
  • Text Field

    Text Field

  • Spinner

    Spinner

  • Number Field

    Number Field

  • Breadcrumbs

    Breadcrumbs

  • Radio Button

    Radio Button

  • Field

    Field

  • Social Login Buttons

    Social Login Buttons

  • Link

    Link

More in Forms

View all
  • Form

    Form

    7
  • Login 2

    Login 2

    16
  • Contact Form

    Contact Form

    33
  • Contact Card

    Contact Card

    1.1K
  • Book A Demo 1

    Book A Demo 1

    95
  • Premium Auth

    Premium Auth

    614
  • Onboarding Stepper

    Onboarding Stepper

    13
  • Authentication Card

    Authentication Card

    52