MCPcopy
hub / github.com/negomi/react-burger-menu / getStyle

Function getStyle

lib/menuFactory.js:210–217  ·  view source on GitHub ↗
(style, index)

Source from the content-addressed store, hash-verified

208 }
209
210 function getStyle(style, index) {
211 var _props = props;
212 var width = _props.width;
213 var right = _props.right;
214
215 var formattedWidth = typeof width !== 'string' ? width + 'px' : width;
216 return style(isOpen, formattedWidth, right, index);
217 }
218
219 // Builds styles incrementally for a given element
220 function getStyles(el, index, inline) {

Callers 2

getStylesFunction · 0.70
handleExternalWrapperFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected