@orsetra/shared-ui 1.3.10 → 1.3.12
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.
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { ArrowLeft } from "lucide-react"
|
|
4
4
|
import Link from "next/link"
|
|
5
5
|
import type { ReactNode, ElementType } from "react"
|
|
6
|
+
import { cn } from "../../lib/utils"
|
|
6
7
|
|
|
7
8
|
const TAB_ACTIVE =
|
|
8
9
|
"border-b-2 border-ibm-blue-60 text-ibm-blue-60 bg-ibm-blue-10/60"
|
|
@@ -35,6 +36,8 @@ export interface DetailPageHeaderProps {
|
|
|
35
36
|
tabBarPosition?: "left" | "right"
|
|
36
37
|
/** Currently active tab id */
|
|
37
38
|
activeTab?: string
|
|
39
|
+
/** Extra classes applied to the root element */
|
|
40
|
+
className?: string
|
|
38
41
|
}
|
|
39
42
|
|
|
40
43
|
export function DetailPageHeader({
|
|
@@ -47,10 +50,11 @@ export function DetailPageHeader({
|
|
|
47
50
|
tabBar,
|
|
48
51
|
tabBarPosition = "left",
|
|
49
52
|
activeTab,
|
|
53
|
+
className,
|
|
50
54
|
}: DetailPageHeaderProps) {
|
|
51
55
|
return (
|
|
52
|
-
<div className="
|
|
53
|
-
<div className="px-4 sm:px-6 pt-
|
|
56
|
+
<div className={cn("border-ibm-gray-20", className)}>
|
|
57
|
+
<div className="px-4 sm:px-6 pt-1 pb-0">
|
|
54
58
|
|
|
55
59
|
{/* Breadcrumb */}
|
|
56
60
|
<Link
|