Skip to content

[dev-v5] FluentTreeView #DRAFT #3802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 22 commits into
base: dev-v5
Choose a base branch
from

Conversation

dvoituron
Copy link
Collaborator

[dev-v5] FluentTreeView

A hierarchical list structure component for displaying data in a collapsible and expandable way.

Use this component when you need to present your users with a clear visual structure of content or data,
allowing them to efficiently interact and navigate through the information.
If the information is less hierarchical or node-based, consider using a list or table instead.

You can create a Tree manually by nesting FluentTreeItem components or by using the Items property of FluentTreeView to dynamically generate a tree from a list of objects.

Example 1

<FluentTreeView @bind-SelectedId="@SelectedId">
    <FluentTreeItem Text="Flowers" IconStart="@(new Icons.Regular.Size16.LeafOne())">
        <FluentTreeItem Text="Daisy" />
        <FluentTreeItem Text="Sunflower" />
        <FluentTreeItem Text="Rose" />
    </FluentTreeItem>
</FluentTreeView>

Example 2

<FluentTreeView Items="@Items" @bind-SelectedItem="@SelectedItem">
    <ItemTemplate>
        <FluentBadge Color="BadgeColor.Informative" Content="@context.Id" />
        @context.Text
    </ItemTemplate>
</FluentTreeView>

Live example: https://fluentui-blazor-v5.azurewebsites.net/TreeView

@dvoituron dvoituron mentioned this pull request May 19, 2025
4 tasks
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.

1 participant