# XWUITree

Tree structure display with expand/collapse and selection

## Basic Usage

Tree with nested items.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: Tree with nested items.
```

## Selectable Tree with Badges

Enable `selectable` and `multiple` to let users pick several nodes at once. Each node can carry a `badge` (e.g. an unread count) that renders on the right, and a node can start `selected`.

```example
file: examples/SelectableWithBadges.ts
html: examples/SelectableWithBadges.html
title: Selectable Tree with Badges
description: Multi-select mailbox tree with unread-count badges and a pre-selected node.
```

## Compact Numbered Sidebar

Turn on `compact` for tight, sidebar-style spacing and switch `showIcons` off. Nodes can show a leading `number` ordinal and be `disabled` to mark unavailable sections.

```example
file: examples/CompactSidebar.ts
html: examples/CompactSidebar.html
title: Compact Numbered Sidebar
description: Tight sidebar with leading ordinals, a disabled item, and icons turned off.
```

```api
```
