MCPcopy Create free account
hub / github.com/FormidableLabs/react-live / Header

Function Header

packages/react-live/stories/main.tsx:25–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23const Story = () => selected?.render() ?? null;
24
25function Header() {
26 return (
27 <header
28 style={{
29 display: "flex",
30 alignItems: "center",
31 gap: 10,
32 height: 48,
33 padding: "0 18px",
34 background: colors.navy,
35 color: "#fff",
36 flex: "0 0 auto",
37 }}
38 >
39 <span
40 aria-hidden="true"
41 style={{
42 width: 8,
43 height: 8,
44 borderRadius: 2,
45 background: colors.green,
46 }}
47 />
48 <strong style={{ fontSize: 15, letterSpacing: "0.01em" }}>
49 React Live
50 </strong>
51 <span style={{ fontSize: 13, opacity: 0.6 }}>stories</span>
52 <a
53 href="https://commerce.nearform.com/open-source/react-live"
54 style={{ marginLeft: "auto", fontSize: 13, color: colors.green }}
55 >
56 Docs
57 </a>
58 </header>
59 );
60}
61
62function Sidebar() {
63 const groups = [...new Set(stories.map((entry) => entry.group))];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected