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

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

WindowTabItem[]

title

ReactNode

width?

number = 940

Returns

Element