MCPcopy Create free account
hub / github.com/adobe/react-spectrum / variableLayout

Function variableLayout

perf/drivers.mjs:276–281  ·  view source on GitHub ↗
(size, narrow = false, atTop = true)

Source from the content-addressed store, hash-verified

274];
275
276const variableLayout = (size, narrow = false, atTop = true) => ({
277 viewport: '#variable-list',
278 width: narrow ? 360 : 600,
279 total: size,
280 atTop
281});
282const variableWidth = width =>
283 condition('#variable-list', {style: {property: 'width', value: `${width}px`}});
284

Callers 2

prepareDeepVariableFunction · 0.85
drivers.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected