MCPcopy Create free account
hub / github.com/ampproject/amphtml / tabindexFromProps

Function tabindexFromProps

src/preact/utils.js:73–78  ·  view source on GitHub ↗
(props, fallback = 0)

Source from the content-addressed store, hash-verified

71 * @return {string|number}
72 */
73export function tabindexFromProps(props, fallback = 0) {
74 // This tabindex property access is okay. Tabindex property access elsewhere
75 // must use this function.
76 // eslint-disable-next-line local/preact-preferred-props
77 return props.tabindex ?? props.tabIndex ?? fallback;
78}

Callers 4

SelectorWithRefFunction · 0.90
component.jsFile · 0.90
OptionShimFunction · 0.90
SelectorShimFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected