Skip to content

feat: add a selectable attribute to/in TreeItem #4925

@m4thieulavoie

Description

@m4thieulavoie

More detail here

🙋 Feature Request

My team would like to be able to provide a custom non-selectable item as a child of the TreeItem. In our specific context, we want to use an Empty State component that is custom to our design system.

🤔 Expected Behavior

A new attribute allows for us to disable the selection of a given TreeItem

Here's an example of what we want to be possible

TreeView
  TreeItem
    TreeItem
    TreeItem
    TreeItem
  TreeItem
    EmptyState <----- Should not be toggleable or interactive

😯 Current Behavior

Any kind of TreeItem is selectable no matter what, with the exception of being disabled

💁 Possible Solution

🔦 Context

💻 Examples

Metadata

Metadata

Assignees

Labels

community:requestIssues specifically reported by a member of the community.featureA new featurestatus:needs-investigationNeeds additional investigation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions