Skip to content

AI-native design editor. Open-source Figma alternative.

438 B
Raw Blame

title: useLayerTree description: Primitive context helper for LayerTreeRoot descendants.

useLayerTree

useLayerTree() reads the local layer-tree context provided by LayerTreeRoot.

Use it inside custom layer-tree descendants that need access to tree items, selection state, expansion state, or row actions.

Related APIs