Skip to content

[Feature]: v9 Tree make active state declarative #27684

@bsunderhus

Description

@bsunderhus

Library

React Components / v9 (@fluentui/react-components)

Describe the feature that you would like added

Current behaviour

Currently the active state is only visible while clicking over a tree item:

image

The active state presents the tree item with a different background color and also keeps actions slot as visible.

New behaviour

Add a property or some sort of internal state that allows the user to force declare that a given item is on the active state, this will allow customisation from the user side on cases that this state might be relevant.

Have you discussed this feature with our team

No response

Additional context

No response

Validations

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions