Skip to content

[Feature]: Expose tablist activeTabIndex in change event payload #34575

@Mich0608

Description

@Mich0608

Area

Web Components (@fluentui/web-components)

Describe the feature that you would like added

This feature request proposes that the tablist component should expose the activeTabIndex directly. Currently, only the activeid is exposed, and the change event returns the active tab as an HTMLElement. Determining the index requires querying the DOM and manually calculating it—an inefficient and unnecessary workaround.

Exposing activeTabIndex, ideally within the change event payload, would simplify usage and improve performance for a wide range of use cases. This is a common pattern in component libraries, where index-based tracking is often more reliable and lightweight than working with DOM references or IDs.

Additional context

No response

Have you discussed this feature with our team

No response

Validations

  • Check that there isn't already an issue that requests the same feature to avoid creating a duplicate.

Priority

None

Metadata

Metadata

Assignees

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions