diff --git a/sites/docs/src/content/components/data-table.md b/sites/docs/src/content/components/data-table.md index 7071c158f..d03c837ad 100644 --- a/sites/docs/src/content/components/data-table.md +++ b/sites/docs/src/content/components/data-table.md @@ -336,7 +336,7 @@ We'll start by defining the actions menu in our `data-table-actions.svelte` comp class="relative size-8 p-0" > Open menu - + {/snippet} @@ -360,8 +360,7 @@ Now that we've defined the `` component, let's update our `a ```ts showLineNumbers title="routes/payments/columns.ts" import type { ColumnDef } from "@tanstack/table-core"; -import { createRawSnippet } from "svelte"; -import { renderSnippet } from "$lib/components/ui/data-table/index.js"; +import { renderComponent } from "$lib/components/ui/data-table/index.js"; import DataTableActions from "./data-table-actions.svelte"; export const columns: ColumnDef[] = [ @@ -506,7 +505,7 @@ We'll start by creating a component to render a sortable email header button. ``` @@ -568,10 +567,7 @@ We can now update the `email` header cell to add sorting controls. ```ts showLineNumbers title="src/routes/payments/columns.ts" import type { ColumnDef } from "@tanstack/table-core"; -import { - renderComponent, - renderSnippet, -} from "$lib/components/ui/data-table/index.js"; +import { renderComponent } from "$lib/components/ui/data-table/index.js"; import DataTableEmailButton from "./data-table-email-button.svelte"; export const columns: ColumnDef[] = [ @@ -843,10 +839,7 @@ Now that we have a new component, we can add a `select` column definition to ren ```ts showLineNumbers title="routes/payments/columns.ts" import type { ColumnDef } from "@tanstack/table-core"; -import { - renderSnippet, - renderComponent, -} from "$lib/components/ui/data-table/index.js"; +import { renderComponent } from "$lib/components/ui/data-table/index.js"; import { Checkbox } from "$lib/components/ui/checkbox/index.js"; export const columns: ColumnDef[] = [