Skip to content

feat: add size prop to Tabs component (sm/md)#36

Merged
cpascariello merged 1 commit intomainfrom
feature/tabs-small-size
Mar 16, 2026
Merged

feat: add size prop to Tabs component (sm/md)#36
cpascariello merged 1 commit intomainfrom
feature/tabs-small-size

Conversation

@cpascariello
Copy link
Copy Markdown
Collaborator

Summary

  • TabsList accepts size="sm" | "md" (default "md") for compact tabs
  • Small variant reduces trigger padding, font size, border thickness, and indicator height
  • Works with both underline and pill variants, and composes with overflow="collapse"

Test plan

  • 5 new unit tests covering size prop, small underline, small pill, and size + overflow combo
  • All 272 tests pass
  • Lint, typecheck, and build pass
  • Visually verified in preview app (Small Underline + Small Pill demo sections)

TabsList accepts size="sm"|"md" (default "md") for compact tabs.
Small variant reduces trigger padding, font size, border thickness,
and indicator height across both underline and pill variants.
@cpascariello cpascariello merged commit a7b80c8 into main Mar 16, 2026
1 check passed
@cpascariello cpascariello deleted the feature/tabs-small-size branch March 16, 2026 14:45
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