MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / Tab

Function Tab

flow-debugger/debugger-ui/src/component/tab/Tab.js:4–14  ·  view source on GitHub ↗
({ focus, label, onClick, ...props })

Source from the content-addressed store, hash-verified

2import React from "react";
3
4const Tab = ({ focus, label, onClick, ...props }) => {
5 return (
6 <button
7 className={focus ? styles.tabSelected : styles.tab}
8 onClick={onClick}
9 {...props}
10 >
11 {label}
12 </button>
13 );
14};
15
16export const TabList = ({ focus, tabs, children = null }) => {
17 let tabsLabel = tabs.map((tab, i) => (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected