MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / Tab

Function Tab

apps/web/ui/Tab/index.tsx:12–21  ·  view source on GitHub ↗
({ active, id, header, onClick }: Props)

Source from the content-addressed store, hash-verified

10}
11
12export default function Tab({ active, id, header, onClick }: Props) {
13 return (
14 <div
15 className={classNames(styles.tab, { [styles.active]: active })}
16 onClick={() => onClick(id)}
17 >
18 {header}
19 </div>
20 );
21}

Callers

nothing calls this directly

Calls 1

onClickFunction · 0.50

Tested by

no test coverage detected