renderTabBar function presentation exported ✓ 100.0%
Last updated: 2026-03-04T23:21:38.426Z
Location
Metrics
LOC: 8
Complexity: 2
Params: 2
Coverage: 100.0% (2/2 lines, 2x executed)
Signature
renderTabBar(tabs: TabConfig[], prefix = ""): : string
Summary
Renders a horizontal tab bar from tab configs.
Source Code
export function renderTabBar(tabs: TabConfig[], prefix = ""): string {
return tabs
.map(
(tab) =>
`<button class="${prefix}tab ${tab.active ? "active" : ""}" data-tab="${tab.id}">${tab.label}</button>`,
)
.join("");
}
No outgoing dependencies.
No incoming dependencies.