@orsetra/shared-ui 1.5.1 → 1.5.2
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.
|
@@ -19,9 +19,9 @@ export interface DetailPageHeaderTab {
|
|
|
19
19
|
|
|
20
20
|
export interface DetailPageHeaderProps {
|
|
21
21
|
/** Back breadcrumb link destination */
|
|
22
|
-
backHref
|
|
22
|
+
backHref?: string
|
|
23
23
|
/** Back breadcrumb label */
|
|
24
|
-
backLabel
|
|
24
|
+
backLabel?: string
|
|
25
25
|
/** Optional icon rendered in a blue square container */
|
|
26
26
|
icon?: ReactNode
|
|
27
27
|
/** Page title – truncated to one line */
|
|
@@ -57,13 +57,15 @@ export function DetailPageHeader({
|
|
|
57
57
|
<div className="px-4 sm:px-2 pt-1 pb-0">
|
|
58
58
|
|
|
59
59
|
{/* Breadcrumb */}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
60
|
+
{backHref && backLabel && (
|
|
61
|
+
<Link
|
|
62
|
+
href={backHref}
|
|
63
|
+
className="inline-flex items-center gap-1.5 text-xs text-ibm-gray-50 hover:text-ibm-blue-60 transition-colors mb-3"
|
|
64
|
+
>
|
|
65
|
+
<ArrowLeft className="h-3 w-3" />
|
|
66
|
+
{backLabel}
|
|
67
|
+
</Link>
|
|
68
|
+
)}
|
|
67
69
|
|
|
68
70
|
{/* Title row */}
|
|
69
71
|
<div className="flex items-center justify-between gap-4 pb-4">
|