DataTable
DataTable
Production-ready data table with automatic data fetching and state management
Example
"use client";
import { DataTable } from "@databricks/appkit-ui/react";
export default function DataTableExample() {
return (
<DataTable
queryKey="example_query"
parameters={{}}
filterColumn="name"
filterPlaceholder="Filter by name..."
pageSize={10}
/>
);
}
DataTable
Production-ready data table with automatic data fetching and state management
Features:
- Automatic column generation from data structure
- Integrated with useAnalyticsQuery for data fetching
- Built-in loading, error, and empty states
- Dynamic filtering, sorting and pagination
- Column visibility controls
- Responsive design
- Supports opinionated mode (auto columns) and full-control mode (
children(table))
Source: packages/appkit-ui/src/react/table/data-table.tsx
Props
Usage
import { DataTable } from '@databricks/appkit-ui';
<DataTable /* props */ />