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

Function Tab

starters/tailwind/src/Tabs.tsx:73–88  ·  view source on GitHub ↗
(props: TabProps)

Source from the content-addressed store, hash-verified

71});
72
73export function Tab(props: TabProps) {
74 return (
75 <RACTab
76 {...props}
77 className={composeRenderProps(props.className, (className, renderProps) =>
78 tabProps({...renderProps, className})
79 )}>
80 {composeRenderProps(props.children, children => (
81 <>
82 {children}
83 <SelectionIndicator className="absolute top-0 left-0 w-full h-full z-10 bg-white rounded-full mix-blend-difference group-disabled:bg-neutral-400 group-disabled:mix-blend-normal group-disabled:dark:bg-neutral-600 group-disabled:-z-1 motion-safe:transition-[translate,width,height] " />
84 </>
85 ))}
86 </RACTab>
87 );
88}
89
90export function TabPanels<T>(props: TabPanelsProps<T>) {
91 return (

Callers

nothing calls this directly

Calls 1

composeRenderPropsFunction · 0.85

Tested by

no test coverage detected