@orsetra/shared-ui 1.5.6 → 1.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -29,6 +29,8 @@ export interface DetailPageHeaderProps {
|
|
|
29
29
|
icon?: ReactNode
|
|
30
30
|
/** Page title – truncated to one line */
|
|
31
31
|
title: string
|
|
32
|
+
/** Optional ReactNode rendered instead of title string (e.g. editable title) */
|
|
33
|
+
titleNode?: ReactNode
|
|
32
34
|
/** Optional subtitle – truncated to one line */
|
|
33
35
|
description?: string
|
|
34
36
|
/** Slot for badges, status buttons, action buttons placed to the right */
|
|
@@ -48,6 +50,7 @@ export function DetailPageHeader({
|
|
|
48
50
|
backLabel,
|
|
49
51
|
icon,
|
|
50
52
|
title,
|
|
53
|
+
titleNode,
|
|
51
54
|
description,
|
|
52
55
|
actions,
|
|
53
56
|
tabBar,
|
|
@@ -80,7 +83,7 @@ export function DetailPageHeader({
|
|
|
80
83
|
)}
|
|
81
84
|
<div className="min-w-0">
|
|
82
85
|
<h1 className="text-lg font-semibold text-ibm-gray-100 leading-tight truncate">
|
|
83
|
-
{title}
|
|
86
|
+
{titleNode ?? title}
|
|
84
87
|
</h1>
|
|
85
88
|
{description && (
|
|
86
89
|
<p className="text-xs text-ibm-gray-50 mt-0.5 truncate">
|