Rendyn

Component library

189 components

Product blocks

Table

Kibo Table wraps TanStack Table primitives in a composed table surface.

Interactive exampleReact Tailwind CSS

Practical React example

Render typed records with explicit column definitions and row-cell rendering.

Before you copy and paste

Use the composed primitives together under their required provider, where one is present. Copy components/kibo-ui/table/index.tsx and its returned support files from the Code tab; preserve the project-relative paths. Install the listed primitives: pnpm dlx shadcn@latest add button dropdown-menu table.

Listed package dependencies: @tanstack/react-table, jotai, lucide-react.

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

Render typed records with explicit column definitions and row-cell rendering

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

import { type ColumnDef, TableProvider, TableHeader, TableHeaderGroup, TableHead,
  TableBody, TableRow, TableCell, TableColumnHeader } from '@/components/kibo-ui/table';

type Project = { id: string; name: string; status: string };
const columns: ColumnDef<Project>[] = [
  { accessorKey: 'name', header: ({ column }) => <TableColumnHeader column={column} title="Project" /> },
  { accessorKey: 'status', header: 'Status' },
];

export function ProjectTable({ projects }: { projects: Project[] }) {
  return (
    <TableProvider columns={columns} data={projects}>
      <TableHeader>
        {({ headerGroup }) => <TableHeaderGroup key={headerGroup.id} headerGroup={headerGroup}>
          {({ header }) => <TableHead key={header.id} header={header} />}
        </TableHeaderGroup>}
      </TableHeader>
      <TableBody>
        {({ row }) => <TableRow key={row.id} row={row}>
          {({ cell }) => <TableCell key={cell.id} cell={cell} />}
        </TableRow>}
      </TableBody>
    </TableProvider>
  );
}

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

Define columns against the real record type, use stable row identity where needed and keep sorting or filtering aligned with the dataset actually displayed.

Customization

TableProviderProps.columns
Required; ColumnDef<TData, TValue>[].
TableProviderProps.data
Required; TData[].
TableProviderProps.children
Required; ReactNode.
TableProviderProps.className
Optional; string.
TableHeadProps.header
Required; Header<unknown, unknown>.
TableHeadProps.className
Optional; string.
TableHeaderGroupProps.headerGroup
Required; HeaderGroup<unknown>.
TableHeaderGroupProps.children
Required; (props: { header: Header<unknown, unknown> }) => ReactNode.
TableHeaderProps.className
Optional; string.
TableHeaderProps.children
Required; (props: { headerGroup: HeaderGroup<unknown> }) => ReactNode.
TableColumnHeaderProps.column
Required; Column<TData, TValue>.
TableColumnHeaderProps.title
Required; string.
TableCellProps.cell
Required; Cell<unknown, unknown>.
TableCellProps.className
Optional; string.

Integration notes

  • Client-side sorting of one fetched page is not server-side sorting of the whole dataset.
  • Check semantic headers, empty results, keyboard access and failure feedback for any edit action.

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