Skip to content

feat(data-table): add optional sticky header - #1143

Open
ama-ahmed wants to merge 1 commit into
sadmann7:mainfrom
ama-ahmed:feat/data-table-sticky-header
Open

feat(data-table): add optional sticky header#1143
ama-ahmed wants to merge 1 commit into
sadmann7:mainfrom
ama-ahmed:feat/data-table-sticky-header

Conversation

@ama-ahmed

Copy link
Copy Markdown

Adds an opt-in sticky header to the data table, configured per table via table meta: useDataTable({ meta: { stickyHeader, maxHeight } }).

  • getStickyHeaderStyle helper in lib/data-table, composed with the existing pinning style so pinned + sticky header cells coexist
  • stickyHeader/maxHeight added to the TableMeta augmentation
  • Table primitive gains a containerStyle prop so the scroll container can take a runtime maxHeight

Adds an opt-in sticky header to the data table, configured per table
via table meta: useDataTable({ meta: { stickyHeader, maxHeight } }).

- getStickyHeaderStyle helper in lib/data-table, composed with the
  existing pinning style so pinned + sticky header cells coexist
- stickyHeader/maxHeight added to the TableMeta augmentation
- Table primitive gains a containerStyle prop so the scroll container
  can take a runtime maxHeight
@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

@ama-ahmed is attempting to deploy a commit to the sadmann7 Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant