diff --git a/docs/app/docs/components/table/content.mdx b/docs/app/docs/components/table/content.mdx index 3f0b49ae7..77e974b92 100644 --- a/docs/app/docs/components/table/content.mdx +++ b/docs/app/docs/components/table/content.mdx @@ -1,6 +1,7 @@ import Documentation from '@/components/layout/Documentation/Documentation'; import TableExample from "./docs/example_1" -import {code, anatomy, api_documentation} from "./docs/codeUsage" +import TableDenseExample from "./docs/example_2" +import {code, denseCode, anatomy, api_documentation} from "./docs/codeUsage" + + + + + Pass `align="end"` on a column's header and cells so numbers line up on their last digit (the table uses tabular figures). `size="small"` tightens rows for dense data, `size="large"` relaxes them. `variant="ghost"` drops the frame and header background when the table sits inside its own panel. + ( +
+ + + + {columns.map((column) => ( + + {column.name} + + ))} + + + + {data.map((row) => ( + + {columns.map((column) => ( + + {row[column.id]} + + ))} + + ))} + + +
+); + +export default TableDenseExample;