feat: add Tabs component#5034
Open
hazrid93 wants to merge 1 commit into
Open
Conversation
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
force-pushed
the
hazrid93/4272_tabs
branch
from
July 20, 2026 11:55
bc41db3 to
47d3fbc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.