,
+ footer: ,
+ },
+ },
]
it.each(testCases)(
diff --git a/src/components/Common/UI/Box/Box.tsx b/src/components/Common/UI/Box/Box.tsx
index 9fe625473..0a0b7397c 100644
--- a/src/components/Common/UI/Box/Box.tsx
+++ b/src/components/Common/UI/Box/Box.tsx
@@ -2,9 +2,10 @@ import cn from 'classnames'
import styles from './Box.module.scss'
import { type BoxProps } from '@/components/Common/UI/Box/BoxTypes'
-export function Box({ children, footer, className }: BoxProps) {
+export function Box({ children, header, footer, className }: BoxProps) {
return (
+ {header &&
{header}
}
{children}
{footer &&
{footer}
}
diff --git a/src/components/Common/UI/Box/BoxTypes.ts b/src/components/Common/UI/Box/BoxTypes.ts
index 13e3a17f6..29c460f8d 100644
--- a/src/components/Common/UI/Box/BoxTypes.ts
+++ b/src/components/Common/UI/Box/BoxTypes.ts
@@ -5,6 +5,10 @@ export interface BoxProps {
* Content to be displayed inside the box
*/
children: ReactNode
+ /**
+ * Content rendered at the top of the box with an edge-to-edge bottom border
+ */
+ header?: ReactNode
/**
* Content rendered at the bottom of the box with an edge-to-edge top border
*/