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

Function Tabs

src/showcase/components/tabs/SimpleTabs.tsx:41–54  ·  view source on GitHub ↗
({ tabs, activeTab, onTabClick, center }: TabsProps)

Source from the content-addressed store, hash-verified

39}
40
41export const Tabs = ({ tabs, activeTab, onTabClick, center }: TabsProps) => {
42 return (
43 <div className="mb-4 flex w-full">
44 {tabs.map((tab) => (
45 <Tab
46 key={tab.id}
47 label={tab.label}
48 isActive={activeTab === tab.id}
49 onClick={() => onTabClick(tab.id)}
50 />
51 ))}
52 </div>
53 )
54}
55
56const SimpleTabs = () => {
57 const [activeTab, setActiveTab] = useState('ansub')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected