Figma UI component

Figma tree view components

Tree views show hierarchy as an expandable, indented list, so people can dig into one branch without losing the shape of the whole. These Figma tree views come in simple and advanced types at two sizes, with open, selected, and hover states.
About this component

Tree view design in Figma: hierarchy, indentation, and states

How these tree view components are built, and when a list is better, simple and advanced types at two sizes.

A tree view answers a question a flat list cannot: what is inside this, and what is that inside of. File browsers use one, so do folder pickers, permission scopes, category managers, org charts, and the left rail of most API documentation.

The pattern survives because it lets someone open one branch six levels deep while everything else stays collapsed and out of the way. The 3 tree view components and 4 variants above give you a simple and an advanced type at two sizes, assembled from item and connector pieces you can also use directly.

Use one only when the hierarchy is real

Trees are frequently reached for by habit. If the nesting is one level deep, a grouped list with a subheading reads faster and takes less space, and if users mostly want to compare items rather than locate them, a table beats a tree outright.

The honest test is whether people arrive knowing roughly where their item lives. When they do, expanding two nodes is quicker than any search box. When they do not, they will expand everything, and at that point you have built a long list with extra indentation.

Depth has a practical ceiling too: at 280px wide, past three or four levels the labels start truncating and the tree becomes a guessing game.

Indentation, and the connector at the last child

Indentation alone tells people something is nested; connector lines tell them exactly which parent it belongs to, which matters once siblings have children of their own. This set treats those lines as a component with three types: a default vertical run for a branch that continues, an end connector for the last child in a group, and a none type for levels that need the space but not the line.

That last-child elbow is the detail that separates a tidy tree from one where a vertical line runs off past the final item into nothing. Both types come at sm and md to match the row height they sit beside.

Two sizes and four properties on the item

Rows are 32px tall at sm and 36px at md. The item component crosses three properties independently: Open for whether a branch is expanded, Selected for whether the row is the current one, and State for default and hover.

Keeping open and selected apart is the important part, because they are genuinely different facts. A folder can be expanded without being the thing you are looking at, and a selected file has no children to expand at all. Kits that collapse the two into one "active" state force designers to fake the combination later.

The simple type runs 240px wide for a plain label and chevron; the advanced type runs 280px and carries the extra content that sidebar navigation and file managers tend to need. Rename, move and delete usually sit behind a context menu on the row rather than in the row itself.

Arrows do the expanding, not Tab

The one thing worth writing on the frame before handoff. The W3C tree view pattern gives the whole tree a single tab stop, then uses the right arrow to open a node or step into its first child, the left arrow to close it or jump back to the parent, up and down to move between visible rows, and typed characters to jump to a matching name.

Each parent row behaves as a disclosure, which is exactly what the Open property is describing in design terms. Tabbing through 200 nodes is the failure mode this prevents, and it is a common one.

When it is time to build, the same trees exist in code. Untitled UI React tree views are open source, built with Tailwind CSS and React Aria, with expansion, selection, and full arrow-key navigation handled for you.

FAQs

Frequently asked questions

Common questions about the Untitled UI Figma tree view components, covering indentation and hover states.

When should I use a tree view instead of a nested list?

When the hierarchy is at least two levels deep, when users need to see where an item sits rather than just find it, and when branches are worth collapsing to get them out of the way.

One level of nesting is better served by a grouped list with subheadings. If people cannot predict which branch holds their item, add search rather than more depth.

How deep should a tree view go?

Three or four levels in a sidebar, realistically. Each level eats horizontal space, and in a 280px panel the labels start truncating quickly after that.

Deep structures are usually better paired with breadcrumbs or a search field so people can jump instead of drilling. If your data genuinely nests eight levels, the tree is the symptom rather than the problem.

Can a Figma component contain an instance of itself for recursive trees?

No. Figma blocks a component from containing an instance of itself, so a genuinely recursive tree cannot be built as one component.

The practical approach is the one used here: an item component plus connector components, stacked in an auto layout frame with indentation applied per level. It is slightly more manual and it never breaks.

Are these tree view components included in the free version?

The tree views are part of the paid Untitled UI Figma kit. See pricing for what's included.

The 100% free Figma UI kit includes core components from the same system if you want to try the styling first.

Is there a React version of these tree views?

Yes. Untitled UI React tree views are open source, built with Tailwind CSS and React Aria, and mirror these Figma components.

The arrow-key expansion and single tab stop the pattern calls for are built in.

Figma UI components

Application UI/Dashboard examples

Dashboard, settings, form layouts—useful examples for everything you need to design modern dashboards and products.
Figma UI components

Application UI/Dashboard Figma components

Modals, tables, alerts—everything you need to design modern and beautiful apps, dashboards and products.
Figma UI components

Marketing website components

Landing page header and website sections—everything you need to design modern and responsive marketing websites.
The ultimate UI kit for Figma

What is Untitled UI?

Untitled UI Figma is the largest UI kit and design system for Figma in the world. Here's everything great about Untitled UI in just 60 seconds.
Play icon
Untitled UI in 60 seconds
Play icon
Pause icon
Join 380,000+ designers from the world's top companies
Gumroad 5 stars

Untitled UI is the best $ I've spent on my business in a long time. I'm going to keep using it and recommending it to every designer I know.

Sam Pierce Lolla
Sam Pierce Lolla
Founder, Shuffleboard
Star iconStar iconStar iconStar iconStar icon
Gumroad 5 stars

Over the years we've featured hundreds of UI kits on UXCrush, but Untitled UI is by far the most comprehensive and detailed I've seen yet. A must have for any designer!

Luca Vavassori
Luca Vavassori
Founder, UXCrush
Star iconStar iconStar iconStar iconStar icon
Gumroad 5 stars

I've used all UI kits on the market. I can say without a doubt that the Untitled UI kit is the best on the market. It covers everything a designer needs in a modern and efficient way.

Murat Alpay
Murat Alpay
Product Designer, @imuratalpay
Star iconStar iconStar iconStar iconStar icon
Gumroad 5 stars

Incredible, and keeps getting better. I’ve tried dozens of UI kits and Untitled UI is the only name you should care about. It stands head and shoulders above the rest.

Jérémy Franck
Jérémy Franck
Designer, @jrmyfranck
Star iconStar iconStar iconStar iconStar icon
Gumroad 5 stars

Such a beautiful, detailed, and extensive UI kit. Untitled UI is the perfect foundation for any project. I highly recommend this huge time saver.

Adham Dannaway
Adham Dannaway
Product Designer, Practical UI
Star iconStar iconStar iconStar iconStar icon
Gumroad 5 stars

Untitled UI has been an amazing resource that I'm learning to rely upon to spin up ideas in no time. I think I might launch a startup pretty soon by mistake here!

Ricardo Buzzotta
Riccardo Buzzotta
Senior Product Designer, Spotify
Star iconStar iconStar iconStar iconStar icon
Gumroad 5 stars

The sheer scale, details, and organization of this kit is mind-blowing. It covers nearly everything a Designer could need in a modern, efficient and systematic way.

Corey Moen
Corey Moen
Senior Brand Designer, Webflow
Star iconStar iconStar iconStar iconStar icon
Gumroad 5 stars

I'm super impressed with this. I love poking around in other peoples UI Kits to see how they think. This is probably one of the most comprehensive I've seen.

Matt Walker
Matt Walker
Design Systems, Mailchimp
Star iconStar iconStar iconStar iconStar icon
Gumroad 5 stars

I'm super excited to use this for quick mockups of ideas in Figma. We're always trying to streamline our design process so we can move fast! Definitely recommend.

Jenny Chu
Jenny Chu
Head of Product, Eucalyptus
Star iconStar iconStar iconStar iconStar icon
Gumroad 5 stars

Untitled UI is easily the best UI kit I've used so far. It has an insane amount of components that are all incredibly well-built. I don't even know how many hours this will save.

Sunny Trochaniak
Sunny Trochaniak
Founder, NewPulse Labs
Star iconStar iconStar iconStar iconStar icon
Gumroad 5 stars

The attention to detail and thought Jordan has put into this UI kit is unparalleled.

Dan Mcleay
Dan Mcleay
Lead Designer, Fox Sports
Star iconStar iconStar iconStar iconStar icon
Gumroad 5 stars

Untitled UI is incredibly well-organized and the attention to detail is great. I highly recommend this kit to any designer that wants to create beautiful designs fast.

Tom Bekkers
Tom Bekkers
Founder & Creative Director, Flowbase
Star iconStar iconStar iconStar iconStar icon
Gumroad 5 stars

What an awesome Figma kit... it's an absolute game changer. This is the perfect base for any design system. The size and attention to detail is next level.

Dan Anisse
Dan Anisse
Co-founder, Relume
Star iconStar iconStar iconStar iconStar icon
Gumroad 5 stars

We've been using Untitled to build Himalayas 2.0 and have finished a complete redesign in just a few days. It has everything we need already pixel-perfect.

Abi Tyas Tunggal
Abi Tyas Tunggal
Co-founder, Himalayas
Star iconStar iconStar iconStar iconStar icon