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

Function buildClassStyleSection

packages/sdk-playground/src/main.ts:854–868  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

852}
853
854function buildClassStyleSection(): HTMLDivElement {
855 const sel = mkInput("selector", ".badge");
856 sel.style.width = "80px";
857 const prop = mkInput("prop", "background");
858 prop.style.width = "90px";
859 const val = mkInput("value", "#8b5cf6");
860 val.style.width = "90px";
861 const apply = mkBtn("Apply", "primary", () => {
862 const selector = sel.value.trim();
863 const styles = { [prop.value.trim()]: val.value.trim() || null };
864 comp!.dispatch({ type: "setClassStyle", selector, styles });
865 logEntry("op", { setClassStyle: { selector, ...styles } });
866 });
867 return opSection("setClassStyle", opRow(sel, prop, val, apply));
868}
869
870function buildAttributeSection(): HTMLDivElement {
871 const name = mkInput("name", "data-custom");

Callers

nothing calls this directly

Calls 6

mkInputFunction · 0.85
mkBtnFunction · 0.85
logEntryFunction · 0.85
opSectionFunction · 0.85
opRowFunction · 0.85
dispatchMethod · 0.65

Tested by

no test coverage detected