๐Ÿ”ฐSlot API

  • node.assignedSlot the <slot> element that the node is assigned to.

  • slot.assignedNodes({flatten: true/false}) nodes assigned to the slot. (flatten = false by default, if set totrue, then it looks more deeply into the flattened DOM)

  • slot.assignedElements({flatten: true/false}) elements assigned to the slot (same as above, but only element nodes).

Last updated