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

Function TabInner

packages/@react-spectrum/s2/src/Tabs.tsx:535–555  ·  view source on GitHub ↗
({
  isDisabled,
  orientation,
  children
}: {
  isDisabled: boolean;
  orientation: Orientation;
  children: ReactNode;
})

Source from the content-addressed store, hash-verified

533}
534
535function TabInner({
536 isDisabled,
537 orientation,
538 children
539}: {
540 isDisabled: boolean;
541 orientation: Orientation;
542 children: ReactNode;
543}) {
544 let ref = useRef<HTMLDivElement | null>(null);
545 let isHidden = useContext(HiddenTabsContext);
546
547 return (
548 <>
549 {!isHidden && (
550 <SelectionIndicator ref={ref} className={selectedIndicator({isDisabled, orientation})} />
551 )}
552 {children}
553 </>
554 );
555}
556
557const tabPanel = style(
558 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected