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

Function SimpleTabs

src/showcase/components/tabs/SimpleTabs.tsx:56–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54}
55
56const SimpleTabs = () => {
57 const [activeTab, setActiveTab] = useState('ansub')
58
59 const tabs = [
60 { id: 'ansub', label: 'Ansub' },
61 { id: 'syntax', label: 'SyntaxUI' },
62 ]
63
64 const handleTabClick = (tabId: string) => {
65 setActiveTab(tabId)
66 }
67
68 return (
69 <div>
70 <Tabs tabs={tabs} activeTab={activeTab} onTabClick={handleTabClick} />
71 </div>
72 )
73}
74
75export default SimpleTabs

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected