Skip to content

@sqlrooms/artifacts / ArtifactTabsProps

Type Alias: ArtifactTabsProps

ArtifactTabsProps = Omit<TabStripProps, "tabs" | "openTabs" | "selectedTabId" | "onOpenTabsChange" | "onSelect" | "onClose" | "onCreate" | "onRename" | "renderTabMenu" | "renderSearchItemActions"> & UseArtifactTabsOptions & object

Type Declaration

NameTypeDescription
renderTabMenu()?(tab, actions) => React.ReactNode-
renderSearchItemActions()?(tab, actions) => React.ReactNode-
onActivateArtifact()?(artifactId) => voidCalled when an artifact tab is activated by the user, including clicks on the already-selected tab. Use this for transient UI that should dismiss whenever the user returns attention to an artifact tab.
onSelectArtifact()?(artifactId) => voidCalled when artifact selection changes through the tab strip.
emptyContent?React.ReactNode-
content?React.ReactNode-
forceMountContent?booleanKeep visible artifact tab panels mounted and hide inactive panels. Ignored when a custom content renderer is provided.
overlay?React.ReactNode | ((actions) => React.ReactNode)-