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

Function Tab

starters/docs/src/Tabs.tsx:26–37  ·  view source on GitHub ↗
(props: TabProps)

Source from the content-addressed store, hash-verified

24}
25
26export function Tab(props: TabProps) {
27 return (
28 <RACTab {...props}>
29 {composeRenderProps(props.children, children => (
30 <>
31 {children}
32 <SelectionIndicator />
33 </>
34 ))}
35 </RACTab>
36 );
37}
38
39export function TabPanels<T>(props: TabPanelsProps<T>) {
40 return <RACTabPanels {...props} />;

Callers

nothing calls this directly

Calls 1

composeRenderPropsFunction · 0.85

Tested by

no test coverage detected