Usage
TheVTreeview component is used to display hierarchical data with expandable nodes.
Selectable Items
Make items selectable:Open All
Expand all nodes by default:Search
Filter tree items:Indent Lines
Show visual indentation guides:Custom Icons
Customize expand/collapse icons:Activatable
Highlight active items:Props
Array of items to display in the tree. Each item should have a
title and optionally childrenThe v-model value (alias for selected)
Array of selected item values
Array of opened (expanded) item values
Array of activated item values
Opens all tree nodes by default
Search query to filter tree items
Shows indent guide lines. Use ‘default’ or true for standard lines
Color of the indent guide lines
Opacity of the indent guide lines
Hides the “no data” message when search returns no results
Text to display when no items match the search
Icon used for expandable nodes
Icon used for collapsible nodes
Enables item selection with checkboxes
Enables item activation (highlighting)
Returns the entire item object instead of just the value
Properties to search when filtering items
Reduces the width of the expand icon area
Adjusts the vertical spacing of items
Color applied to active items
Base color for items
Color applied to selected items
Disables all tree items
Visual variant for tree items
Slots
Slot to customize item title rendering
Slot for content before the item title
Slot for content after the item title
Slot to customize the “no data” message
Events
Emitted when selected items change
Emitted when selected items change
Emitted when opened items change
Emitted when activated items change
Emitted when an item is opened/closed
Emitted when an item is selected/deselected
When using search functionality, the treeview automatically expands parent nodes to show matching children.