Rendyn

Component library

189 components

Product blocks

List

Kibo List composes grouped items with drag-aware state.

Interactive exampleReact Tailwind CSS

Practical React example

Group project records by status and report deliberate reordering or movement.

Before you copy and paste

Use the composed primitives together under their required provider, where one is present. Copy components/kibo-ui/list/index.tsx and its returned support files from the Code tab; preserve the project-relative paths. This example also uses shadcn UI primitives: avatar; install compatible versions or replace them with your existing equivalents. Example-only packages: @faker-js/faker. Replace fixture-generation helpers with application data if they are not needed.

Listed package dependencies: @dnd-kit/core, @dnd-kit/modifiers.

Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.

Group project records by status and report deliberate reordering or movement

// Usage adapted from Kibo UI's pinned MIT source.
// Copyright (c) 2023 — Present shadcnblocks. See ./LICENSES.md.
"use client";

import { faker } from "@faker-js/faker";

faker.seed(42);
import type { DragEndEvent } from "@/components/kibo-ui/list";
import {
  ListGroup,
  ListHeader,
  ListItem,
  ListItems,
  ListProvider,
} from "@/components/kibo-ui/list";
import { useState } from "react";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";

const capitalize = (str: string) => str.charAt(0).toUpperCase() + str.slice(1);

const statuses = [
  { id: faker.string.uuid(), name: "Planned", color: "#6B7280" },
  { id: faker.string.uuid(), name: "In Progress", color: "#F59E0B" },
  { id: faker.string.uuid(), name: "Done", color: "#10B981" },
];

const users = Array.from({ length: 4 })
  .fill(null)
  .map(() => ({
    id: faker.string.uuid(),
    name: faker.person.fullName(),
    image: faker.image.avatar(),
  }));

const exampleFeatures = Array.from({ length: 20 })
  .fill(null)
  .map(() => ({
    id: faker.string.uuid(),
    name: capitalize(faker.company.buzzPhrase()),
    startAt: new Date("2026-02-01T00:00:00.000Z"),
    endAt: new Date("2026-05-01T00:00:00.000Z"),
    status: faker.helpers.arrayElement(statuses),
    owner: faker.helpers.arrayElement(users),
  }));

const Example = () => {
  const [features, setFeatures] = useState(exampleFeatures);

  const handleDragEnd = (event: DragEndEvent) => {
    const { active, over } = event;

    if (!over) {
      return;
    }

    const status = statuses.find((status) => status.name === over.id);

    if (!status) {
      return;
    }

    setFeatures(
      features.map((feature) => {
        if (feature.id === active.id) {
          return { ...feature, status };
        }

        return feature;
      })
    );
  };

  return (
    <ListProvider onDragEnd={handleDragEnd}>
      {statuses.map((status) => (
        <ListGroup id={status.name} key={status.name}>
          <ListHeader color={status.color} name={status.name} />
          <ListItems>
            {features
              .filter((feature) => feature.status.name === status.name)
              .map((feature, index) => (
                <ListItem
                  id={feature.id}
                  index={index}
                  key={feature.id}
                  name={feature.name}
                  parent={feature.status.name}
                >
                  <div
                    className="h-2 w-2 shrink-0 rounded-full"
                    style={{ backgroundColor: feature.status.color }}
                  />
                  <p className="m-0 flex-1 font-medium text-sm">
                    {feature.name}
                  </p>
                  {feature.owner && (
                    <Avatar className="h-4 w-4 shrink-0">
                      <AvatarImage src={feature.owner.image} />
                      <AvatarFallback>
                        {feature.owner.name?.slice(0, 2)}
                      </AvatarFallback>
                    </Avatar>
                  )}
                </ListItem>
              ))}
          </ListItems>
        </ListGroup>
      ))}
    </ListProvider>
  );
};

export default Example;

Usage example adapted from Kibo UI's pinned MIT source. Retain the source licence notices when copying.

Use stable item and group IDs and preserve the distinction between visual order and the record’s persisted status. Reconcile optimistic changes after a failed save.

Customization

ListItemsProps.children
Required; ReactNode.
ListItemsProps.className
Optional; string.
ListGroupProps.id
Required; Status["id"].
ListGroupProps.children
Required; ReactNode.
ListGroupProps.className
Optional; string.
ListItemProps.index
Required; number.
ListItemProps.parent
Required; string.
ListItemProps.children
Optional; ReactNode.
ListItemProps.className
Optional; string.
ListProviderProps.children
Required; ReactNode.
ListProviderProps.onDragEnd
Required; (event: DragEndEvent) => void.
ListProviderProps.className
Optional; string.

Integration notes

  • Validate destination groups and record permissions before accepting a move.
  • Keep a non-drag method for changing status or order.

Component source: Kibo UI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.

Better with your agent

Give your agent taste.

The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.

All components are free. Sign up only to connect MCP.

Connect to MCP