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

Function Tab

src/components/reusable/Tabs.tsx:12–28  ·  view source on GitHub ↗
({ label, isActive, onClick }: TabProps)

Source from the content-addressed store, hash-verified

10}
11
12const Tab = ({ label, isActive, onClick }: TabProps) => {
13 return (
14 <div
15 className={`
16 ${
17 isActive
18 ? 'border-b-[3px] border-red-500 bg-white pb-2 font-semibold'
19 : 'cursor-pointer hover:bg-transparent'
20 }
21 text-decoration-none mx-2 justify-start rounded-t-md px-2 py-2 text-sm font-medium
22 `}
23 onClick={onClick}
24 >
25 {label}
26 </div>
27 )
28}
29
30type TabsProps = {
31 tabs: Tab[]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected