ef-hierarchy

Layer panel. Displays the element tree of the target composition.

Shows all temporal elements in the target composition as a collapsible, selectable tree. Fires hierarchy-select when an element is clicked and hierarchy-reorder when elements are dragged to a new position.

html
<ef-hierarchy target="root" show-header header="Layers"
  style="display: block; width: 240px;"></ef-hierarchy>

Each row is rendered by an internal ef-hierarchy-item:

css
ef-hierarchy-item::part(row):hover { background: rgba(255, 255, 255, 0.05); }
ef-hierarchy-item::part(label)     { font-size: 0.75rem; }

Attributes

3 of 3

header

React prop
header
Type
string
Default
""
Description
Header text shown above the tree (when show-header).

show-header

React prop
showHeader
Type
boolean
Default
false
Description
Whether to show the header row.

target

React prop
target
Type
string
Default
""
Description
ID of the target element this component controls or reads from.

CSS Parts

CSS Custom Properties

Events

Methods

4 of 4