(props, fallback = 0)
| 71 | * @return {string|number} |
| 72 | */ |
| 73 | export 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 | } |
no outgoing calls
no test coverage detected