MCPcopy Index your code
hub / github.com/primer/react / getItemsWidth

Function getItemsWidth

packages/react/src/UnderlineNav/UnderlineNav.tsx:204–206  ·  view source on GitHub ↗
(itemText: string)

Source from the content-addressed store, hash-verified

202 }
203
204 function getItemsWidth(itemText: string): number {
205 return noIconChildWidthArray.find(item => item.text === itemText)?.width ?? 0
206 }
207
208 const swapMenuItemWithListItem = (
209 prospectiveListItem: React.ReactElement,

Callers 2

swapMenuItemWithListItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected