MCPcopy Create free account
hub / github.com/fontsource/fontsource / handleActiveVariant

Function handleActiveVariant

website/app/components/preview/CDN.tsx:104–109  ·  view source on GitHub ↗
(value: string | number)

Source from the content-addressed store, hash-verified

102 };
103
104 const handleActiveVariant = (value: string | number) => {
105 setActive((prev) => ({
106 ...prev,
107 axes: toggleVariableAxis(prev.axes, value),
108 }));
109 };
110
111 // Remove ital from active axes and mark separate ital flag as true
112 const isItal = isActive.axes.ital;

Callers

nothing calls this directly

Calls 1

toggleVariableAxisFunction · 0.90

Tested by

no test coverage detected