NV Elements Catalog Starters Repo System Themes Getting Started Getting Started Installation CLI MCP Skills Lint Integrations Getting Started Angular Bundles Custom Elements Golang Hugo Import Maps Lit Lit Library MCP Apps NextJS Nuxt Preact React SolidJS Svelte TypeScript Vue About Changelog Metrics Support Accessibility Contributions Requests Migration Foundations Overview Typography Iconography Themes Design Tokens Size & Space Objects Interactions Support Status Color Animation Fonts Layers Custom Layout Horizontal Vertical Grid Popovers i18n Visualization View Transitions Elements Accordion Alert Avatar Badge Breadcrumb Button Button Group Card Chat Message Checkbox Color Combobox Copy Button Datagrid Integrations Column Action Column Alignment Column Fixed Column width Container Card Display Settings Footer Heatmap Keynav Multi Select Pagination Panel Detail Panel Grid Performance Placeholder Row Action Row Groups Row Sort Scroll Height Single Select Stripe Date Datetime Dialog Divider Dot Drawer Dropdown Dropdown Group Dropzone File Format Datetime Format Number Format Relative Time Forms Validation Actions Control Icon Icon Button Input Input Group Logo Menu Month Notification Page Page Header Page Loader Pagination Progressive Filter Chip Progress Bar Progress Ring Password Preferences Input Pulse Radio Range Resize Handle Search Select Skeleton Sort Button Sparkline Star Rating Steps Switch Tabs Tag Textarea Time Toast Toggletip Toolbar Tooltip Tree Week Patterns Authentication Browse Chat Dashboard Editor Empty States Heatmap Keyboard Shortcut Logging Media Navigation Onboarding Panel Responsive Search Subheader Trend Code Codeblock Monaco Input Diff Input Editor Diff Editor Problems Markdown Markdown CSS Utility Labs Responsive Layout Viewport Container Patterns Forms API Design Properties & Attributes Slots Registration CustomEvents Stateless Composition Styles Packaging Glossary Logs Internal Guidelines Agent Harness Agent Tooling Agent Ownership Documentation Examples TypeScript Testing Unit Testing Accessibility Testing Lighthouse Testing SSR Testing Visual Testing Troubleshooting Component Creation Internal Examples All Examples

Tree View

stable:  0.2.4 Coverage: 100.00% Bundle: 29.26kb Lighthouse: 100 Axe Core Released: 1.2.0
Overview API Examples

<nve-tree>

Properties

Property Attribute Description Values border border

Determines if the node depth border renders.

true
false
behaviorSelect behavior-select

Determines whether the tree nodes should handle auto-select behavior.

true
false
behaviorExpand behavior-expand

Determines whether the tree nodes should handle auto-expanding behavior.

true
false
selectable selectable

Determines whether all nodes can be in a selected state. Nodes can be in a single or multi select state.

single
multi

Events

Event Description select

Dispatched from a child nve-tree-node when its selection state changes.

close

Dispatched from a child nve-tree-node when closed.

open

Dispatched from a child nve-tree-node when opened.

Slots

Slot Description default

tree nodes

CSS Properties

Css-property Description --node-border

Border style for tree node depth indicator

--max-width

<nve-tree-node>

Properties

Property Attribute Description Values close none

closes and sets the expanded state automatically if behaviorExpand is true

open none

opens and sets the expanded state automatically if behaviorExpand is true

behaviorSelect none
boolean
behaviorExpand none
boolean
indeterminate none
boolean
i18n i18n

Enables updating internal string values for internationalization.

highlighted highlighted

Determines the highlighted state of the element. Highlighted states serve non-interactive selections where nodes may relate to other selected portions of the UI.

true
false
selectable selectable

Determines whether a node can be in a selected state. Nodes can be in a single or multi select state.

single
multi
expandable expandable

Determines whether a node can be expandable. Expandable by default if slotted nodes exist.

true
false
selected selected

Indicates whether an element currently holds selection within a multi-option selection group. MDN

true The element holds selection and represents the user's current choice within the group.
false The element does not hold selection and the user can choose it.
expanded expanded

Indicates whether collapsible content is currently visible or hidden from the user. MDN

true The associated content expands and becomes visible to the user.
false The associated content collapses and hides from the user.

Events

Event Description select

Dispatched when the node selection state changes.

close

Dispatched when the node closes.

open

Dispatched when the node opens.

Slots

Slot Description content

Use only for extended long form content containing interactive elements or form inputs.

default

Use default slot for basic text content or nested elements.

Invoker Commands

Command Description --toggle

use to toggle open / closed state of the node

--close

use to close the node

--open

use to open the node

--toggle-select

use to toggle the node selection state

--deselect

use to deselect the node

--select

use to select the node

CSS Properties

Css-property Description --width --font-weight --text-wrap --min-height --font-size --border-radius --color

CSS Parts

Css-part Description checkbox

The checkbox element

icon

The icon element

icon-button

The icon button element