Skip to content

feat: add Tabs component#5034

Open
hazrid93 wants to merge 1 commit into
callstack:mainfrom
hazrid93:hazrid93/4272_tabs
Open

feat: add Tabs component#5034
hazrid93 wants to merge 1 commit into
callstack:mainfrom
hazrid93:hazrid93/4272_tabs

Conversation

@hazrid93

Copy link
Copy Markdown

feat: add Tabs component

Closes #4272.

Adds a Material 3 tabs component with primary and secondary variants. Takes a controlled active tab and a list of tabs, each with a key, a label, an optional icon, an optional badge, an optional disabled flag, and an optional accessibility label.

Renders each tab as a pressable item with the tab accessibility role, marks the active tab as selected, shows an active indicator on it, and calls a change callback with the tab key. Disabled tabs are marked disabled and do not trigger the callback. The primary variant renders an optional icon beside the label and the secondary variant shows the label only with a full width indicator. Tabs share width equally by default, with a scrollable option that sizes tabs to content. The strip exposes the tab list role. The component and its public types are exported from the public surface.

@callstack-bot

callstack-bot commented Jul 20, 2026

Copy link
Copy Markdown

Hey @hazrid93, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

Closes callstack#4272.

Adds a Material 3 tabs component with primary and secondary variants. Takes a controlled active tab and a list of tabs, each with a key, a label, an optional icon, an optional badge, an optional disabled flag, and an optional accessibility label.

Renders each tab as a pressable item with the tab accessibility role, marks the active tab as selected, shows an active indicator on it, and calls a change callback with the tab key. Disabled tabs are marked disabled and do not trigger the callback. The primary variant renders an optional icon beside the label and the secondary variant shows the label only with a full width indicator. Tabs share width equally by default, with a scrollable option that sizes tabs to content. The strip exposes the tab list role. The component and its public types are exported from the public surface.
@hazrid93
hazrid93 force-pushed the hazrid93/4272_tabs branch from bc41db3 to 47d3fbc Compare July 20, 2026 11:55
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.

[Feature request] Add Material Tabs

2 participants