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

Function handleActiveVariant

website/app/components/preview/InstallCode.tsx:164–169  ·  view source on GitHub ↗
(value: string | number)

Source from the content-addressed store, hash-verified

162 };
163
164 const handleActiveVariant = (value: string | number) => {
165 setActive((prev) => ({
166 ...prev,
167 axes: toggleVariableAxis(prev.axes, value),
168 }));
169 };
170
171 const isItal = isActive.axes.ital;
172

Callers

nothing calls this directly

Calls 1

toggleVariableAxisFunction · 0.90

Tested by

no test coverage detected