MCPcopy Create free account
hub / github.com/SyntaxUI/syntaxui / Tabs

Function Tabs

src/components/reusable/Tabs.tsx:37–50  ·  view source on GitHub ↗
({ tabs, activeTab, onTabClick, center }: TabsProps)

Source from the content-addressed store, hash-verified

35}
36
37export const Tabs = ({ tabs, activeTab, onTabClick, center }: TabsProps) => {
38 return (
39 <div className="mb-4 flex w-full">
40 {tabs.map((tab) => (
41 <Tab
42 key={tab.id}
43 label={tab.label}
44 isActive={activeTab === tab.id}
45 onClick={() => onTabClick(tab.id)}
46 />
47 ))}
48 </div>
49 )
50}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected