diff --git a/lib/live_debugger/components/tree.ex b/lib/live_debugger/components/tree.ex
index 22b73b2e3..208490aba 100644
--- a/lib/live_debugger/components/tree.ex
+++ b/lib/live_debugger/components/tree.ex
@@ -17,6 +17,7 @@ defmodule LiveDebugger.Components.Tree do
To calculate `max_opened_node_level` it uses `max_nesting_level/2` function.
"""
+ attr(:id, :string, required: true, doc: "The id of the tree")
attr(:tree_node, :any, required: true, doc: "The TreeNode struct to render")
attr(:title, :string, required: true, doc: "The title of the tree")
attr(:selected_node_id, :string, required: true, doc: "The id of the selected node")
@@ -39,6 +40,7 @@ defmodule LiveDebugger.Components.Tree do