diff --git a/sites/docs/src/content/components/data-table.md b/sites/docs/src/content/components/data-table.md index dcdc72741..4045bc82b 100644 --- a/sites/docs/src/content/components/data-table.md +++ b/sites/docs/src/content/components/data-table.md @@ -162,12 +162,12 @@ Next, we'll create a `` component to render our table. } from "$lib/components/ui/data-table/index.js"; import * as Table from "$lib/components/ui/table/index.js"; - type DateTableProps = { + type DataTableProps = { columns: ColumnDef[]; data: TData[]; }; - let { data, columns }: DateTableProps = $props(); + let { data, columns }: DataTableProps = $props(); const table = createSvelteTable({ get data() { @@ -402,7 +402,7 @@ Next, we'll add pagination to our table. columns: ColumnDef[]; }; - let { data, columns }: DateTableProps = $props(); + let { data, columns }: DataTableProps = $props(); let pagination = $state({ pageIndex: 0, pageSize: 10 }); @@ -439,7 +439,7 @@ We can add pagination controls to our table using the `