moderator-toolbox-nxg-for-reddit / shared/window/TabbedDialog
shared/window/TabbedDialog¶
Functions¶
TabbedDialog()¶
TabbedDialog(
props):Element
Defined in: extension/data/shared/window/TabbedDialog.tsx:18
Renders a modal dialog with a vertical tab sidebar.
Parameters¶
props¶
Component properties.
contentOverride?¶
ReactNode
When set, shown in the content pane instead of the active tab’s content
defaultTabIndex?¶
number = 0
footer?¶
ReactNode
Global footer shown when the active tab provides no per-tab footer.
hiddenTabIndices?¶
Set<number>
Set of tab indices whose buttons should be hidden in the sidebar
hideTabButtons?¶
boolean = false
If true, hides the tab buttons while still rendering sidebarHeader and content
onClose?¶
() => void
onTabChange?¶
(index) => void
sidebarHeader?¶
ReactNode
Content rendered above the tab list in the sidebar
tabs¶
title¶
ReactNode
width?¶
number = 940
Returns¶
Element