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

Function Tab

src/showcase/components/tabs/SimpleTabs.tsx:16–32  ·  view source on GitHub ↗
({ label, isActive, onClick }: TabProps)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected