MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / appendAttributesSection

Function appendAttributesSection

packages/sdk-playground/src/main.ts:567–575  ·  view source on GitHub ↗
(container: HTMLElement, el: PropEl)

Source from the content-addressed store, hash-verified

565}
566
567function appendAttributesSection(container: HTMLElement, el: PropEl) {
568 const sec = propSection("Attributes");
569 const attrs = Object.entries(el.attributes).filter(
570 ([k]) => !k.startsWith("data-hf-") && k !== "class" && k !== "style",
571 );
572 for (const [name, val] of attrs) sec.appendChild(attrRow(name, val));
573 if (attrs.length === 0) sec.appendChild(mkNote("no attributes"));
574 container.appendChild(sec);
575}
576
577function appendDangerSection(container: HTMLElement) {
578 const sec = propSection("Danger");

Callers 1

renderPropertiesContentFunction · 0.85

Calls 4

propSectionFunction · 0.85
attrRowFunction · 0.85
mkNoteFunction · 0.85
entriesMethod · 0.80

Tested by

no test coverage detected