We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6181cd9 commit 751d973Copy full SHA for 751d973
material-react-table-docs/pages/docs/guides/column-pinning.mdx
@@ -40,13 +40,14 @@ Column pinning can simply be enabled by setting the `enablePinning` prop to `tru
40
41
### Pin (Freeze) Columns By Default
42
43
-Columns can start out pinned in your table by setting the `pinning` states in `initialState` or `state`.
+Columns can start out pinned in your table by setting the `columnPinning` states in `initialState` or `state`.
44
45
```tsx
46
<MaterialReactTable
47
data={data}
48
columns={columns}
49
- initialState={{ pinning: { left: ['email'] } }} //pin email column to left by default
+ enablePinning
50
+ initialState={{ columnPinning: { left: ['email'] } }} //pin email column to left by default
51
/>
52
```
53
0 commit comments