Skip to content

feat(table): support center alignment#348

Merged
IzumiSy merged 3 commits into
mainfrom
feat/table-center-align-prop
Jul 1, 2026
Merged

feat(table): support center alignment#348
IzumiSy merged 3 commits into
mainfrom
feat/table-center-align-prop

Conversation

@IzumiSy

@IzumiSy IzumiSy commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Motivation

Table.Head and Table.Cell recently gained an align prop for left/right alignment, but a follow-up request came up to support center as well. This keeps the primitive flexible for simple status or label columns without forcing consumers back to utility-class overrides.

Design Decision

Rather than special-casing another branch in both components, this updates the shared alignment type to include center and maps each supported value to its corresponding class. That keeps Table.Head and Table.Cell aligned with each other and makes future additions straightforward if we ever need them.

Summary

  • add align="center" support to Table.Head and Table.Cell
  • add tests covering center alignment for header and data cells
  • document center alignment usage and add a changeset

@IzumiSy IzumiSy requested a review from a team as a code owner July 1, 2026 03:05
@IzumiSy IzumiSy merged commit 352d180 into main Jul 1, 2026
5 checks passed
@IzumiSy IzumiSy deleted the feat/table-center-align-prop branch July 1, 2026 08:41
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.

2 participants