MCPcopy Create free account
hub / github.com/BetaSu/big-react / TabButton

Function TabButton

demos/transition/TabButton.tsx:3–16  ·  view source on GitHub ↗
({ children, isActive, onClick })

Source from the content-addressed store, hash-verified

1import { useTransition } from 'react';
2
3export default function TabButton({ children, isActive, onClick }) {
4 if (isActive) {
5 return <b>{children}</b>;
6 }
7 return (
8 <button
9 onClick={() => {
10 onClick();
11 }}
12 >
13 {children}
14 </button>
15 );
16}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected