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

Function appendTypographySection

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

Source from the content-addressed store, hash-verified

519}
520
521function appendTypographySection(container: HTMLElement, el: PropEl) {
522 const sec = propSection("Typography");
523 sec.appendChild(makeStyleRow("Color", "color", styleVal(el, "color"), "color"));
524 sec.appendChild(makeStyleRow("Size", "fontSize", styleVal(el, "fontSize"), "text"));
525 sec.appendChild(
526 makeStyleRow("Weight", "fontWeight", styleVal(el, "fontWeight"), "select", WEIGHTS),
527 );
528 container.appendChild(sec);
529}
530
531function appendBoxSection(container: HTMLElement, el: PropEl) {
532 const sec = propSection("Box");

Callers 1

renderPropertiesContentFunction · 0.85

Calls 3

propSectionFunction · 0.85
makeStyleRowFunction · 0.85
styleValFunction · 0.85

Tested by

no test coverage detected