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

Function MobileTab

packages/dev/s2-docs/src/MobileSearchMenu.tsx:168–186  ·  view source on GitHub ↗
(props: Omit<RACTabProps, 'children'> & {children: ReactNode})

Source from the content-addressed store, hash-verified

166});
167
168function MobileTab(props: Omit<RACTabProps, 'children'> & {children: ReactNode}) {
169 let contentId = useId();
170 return (
171 <RACTab {...props} className={renderProps => mobileTab(renderProps)}>
172 <Provider
173 values={[
174 [
175 TextContext,
176 {
177 id: contentId
178 }
179 ]
180 ]}>
181 {props.children}
182 </Provider>
183 <SelectionIndicator className={mobileSelectionIndicator} />
184 </RACTab>
185 );
186}
187
188interface MobileTabListProps {
189 children: ReactNode;

Callers

nothing calls this directly

Calls 1

useIdFunction · 0.90

Tested by

no test coverage detected