Skip to content

Commit 751d973

Browse files
committed
fix pinning doc typos
1 parent 6181cd9 commit 751d973

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

material-react-table-docs/pages/docs/guides/column-pinning.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,14 @@ Column pinning can simply be enabled by setting the `enablePinning` prop to `tru
4040

4141
### Pin (Freeze) Columns By Default
4242

43-
Columns can start out pinned in your table by setting the `pinning` states in `initialState` or `state`.
43+
Columns can start out pinned in your table by setting the `columnPinning` states in `initialState` or `state`.
4444

4545
```tsx
4646
<MaterialReactTable
4747
data={data}
4848
columns={columns}
49-
initialState={{ pinning: { left: ['email'] } }} //pin email column to left by default
49+
enablePinning
50+
initialState={{ columnPinning: { left: ['email'] } }} //pin email column to left by default
5051
/>
5152
```
5253

0 commit comments

Comments
 (0)