瀏覽代碼

Describe variables for datagrid in docs

Bartłomiej Gawęda 8 月之前
父節點
當前提交
3a04567fba
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      docs/ui/components/datagrid.mdx

+ 7 - 0
docs/ui/components/datagrid.mdx

@@ -88,3 +88,10 @@ description: Use the data grid component to display detailed information about y
   </div>
 </div>
 ```
+
+You can adjust the datagrid to your needs setting the values of variables:
+
+| Variable | Description | Default |
+|----------|-------------|---------|
+| `--tblr-datagrid-item-width` | Width of the datagrid item | `15rem` |
+| `--tblr-datagrid-padding` | Gap between the datagrid items | `1.5rem` |