2021-04-21 16:42:28 +00:00
|
|
|
import React from "react"
|
|
|
|
import Style from "./BoxHeaderOnly.module.css"
|
|
|
|
import classNames from "classnames"
|
|
|
|
|
|
|
|
|
2021-04-23 00:18:06 +00:00
|
|
|
/**
|
|
|
|
* A box with only the header part and with no body.
|
|
|
|
*
|
|
|
|
* @param children - What should be displayed inside the header.
|
|
|
|
* @param className - Additional class(es) that should be added to the box.
|
|
|
|
* @param props - Additional props to pass to the box.
|
|
|
|
* @returns {JSX.Element}
|
|
|
|
* @constructor
|
|
|
|
*/
|
2021-04-21 16:42:28 +00:00
|
|
|
export default function BoxHeaderOnly({ children, className, ...props }) {
|
|
|
|
return (
|
|
|
|
<div className={classNames(Style.BoxHeaderOnly, className)} {...props}>
|
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|