You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 00a1908
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: packages/react-table/src/components/Table/examples/Table.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -489,6 +489,16 @@ Use `Tfoot` for semantic table footer rows. Set `isStickyFooter` on `Table` to k
489
489
490
490
```
491
491
492
+
### Dynamic sticky footer
493
+
494
+
A sticky footer may alternatively be implemented with two properties: `isStickyFooterBase` and `isStickyFooterStuck` - which allows separate control of the sticky position and sticky styling. `isStickyFooterBase` should always be applied to make the footer position sticky, and `isStickyFooterStuck` may be applied dynamically to enable the sticky styling, such as when the sticky footer is not at the bottom of the scroll parent as shown in the example.
495
+
496
+
`isStickyFooter` acts as if both properties are present and true when applied, and is useful when dynamic sticky styling is not necessary.
497
+
498
+
```ts file="TableStickyFooterDynamic.tsx"
499
+
500
+
```
501
+
492
502
### Striped
493
503
494
504
To apply striping to a basic table, add the `isStriped` property to `Table`.
0 commit comments