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

Function MobileTabList

packages/dev/s2-docs/src/MobileSearchMenu.tsx:192–205  ·  view source on GitHub ↗
({children}: MobileTabListProps)

Source from the content-addressed store, hash-verified

190}
191
192function MobileTabList({children}: MobileTabListProps) {
193 return (
194 <div className={mobileTabListWrapper}>
195 <div className={style({position: 'relative', flexGrow: 1, overflow: 'hidden'})}>
196 <RACTabList className={mobileTabList}>{children}</RACTabList>
197 </div>
198 <div className={style({paddingEnd: 12, flexShrink: 0})}>
199 <Provider values={[[OverlayTriggerStateContext, null]]}>
200 <CloseButton onPress={() => {}} />
201 </Provider>
202 </div>
203 </div>
204 );
205}
206
207function MobileTabPanel(props: Omit<RACTabPanelProps, 'children'> & {children: ReactNode}) {
208 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected