# Palette sidebar (drag to spawn)

**Category:** Interaction  
**Live demo:** https://xenolithengine.github.io/xenolith-graph/examples/palette-sidebar/  
**Frameworks shipped:** vanilla, react, vue, svelte, solid, angular

## Description

16 schemas across 5 categories (data / math / transform / logic / io) listed in a docked palette on the left. Drag any tile onto the canvas — the editor inserts the node at the drop point via its built-in `node:drop` handler. Configure with `editor.setPaletteSidebar({ side, filter })`.

## Source files

  - [vanilla] vanilla/palette-sidebar.ts
  - [vanilla] shared/palette-sidebar.ts
  - [react] demos/PaletteSidebarDemo.tsx
  - [react] shared/palette-sidebar.ts
  - [vue] vue/PaletteSidebarDemo.vue
  - [vue] shared/palette-sidebar.ts
  - [svelte] vanilla/svelte-palette-sidebar.ts
  - [svelte] shared/palette-sidebar.ts
  - [solid] vanilla/solid-palette-sidebar.ts
  - [solid] shared/palette-sidebar.ts
  - [angular] angular/PaletteSidebarDemo.component.ts
  - [angular] shared/palette-sidebar.ts

## How to use this example

Open the live demo at https://xenolithengine.github.io/xenolith-graph/examples/palette-sidebar/ to interact with it in the browser. The same source files are
reproduced verbatim in the page so you can copy-paste into your own project. Every example is
self-contained — pick one, copy the files, install `@xenolithengine/graph-editor` + the relevant framework
adapter, and it runs.

## See also

- Full project docs: https://xenolithengine.github.io/xenolith-graph/llms.txt
- All examples (raw): https://xenolithengine.github.io/xenolith-graph/api/graphs.jsonl
- MCP tool catalog: https://xenolithengine.github.io/xenolith-graph/api/mcp-tools.json
- Repository: https://github.com/XenolithEngine/xenolith-graph
