diff --git a/docs/src/pages/components/DataTable.svx b/docs/src/pages/components/DataTable.svx
index a21c4b7c..2ad5f107 100644
--- a/docs/src/pages/components/DataTable.svx
+++ b/docs/src/pages/components/DataTable.svx
@@ -1,5 +1,6 @@
@@ -58,6 +59,80 @@
]}"
/>
+### Slotted cells
+
+Use the `"cell"` slot to control the display value per table cell. Individual row and cell data are provided through the `let:row` and `let:cell` directives.
+
+The slot name for the table header cells is `"cell-header"`.
+
+
+
+ {#if header.key === 'port'}
+ {header.value} (network)
+ {:else}
+ {header.value}
+ {/if}
+
+
+ {#if cell.key === 'rule' && cell.value === 'Round robin'}
+ {cell.value}
+ {:else}
+ {cell.value}
+ {/if}
+
+
+
### With title, description
- {header.value}
+ {header.value}
{/each}
@@ -231,7 +231,7 @@
dispatch('click:cell', cell);
}}"
>
- {cell.value}
+ {cell.value}
{/each}