1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-22 21:14:18 +00:00
pds-2021-g2-nest/nest_frontend/components/base/BoxHeader.js

22 lines
619 B
JavaScript
Raw Normal View History

2021-04-21 16:42:28 +00:00
import React from "react"
2021-04-23 00:24:38 +00:00
import Style from "./BoxHeader.module.css"
2021-04-21 16:42:28 +00:00
import classNames from "classnames"
/**
* 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-23 00:24:38 +00:00
export default function BoxHeader({ children, className, ...props }) {
2021-04-21 16:42:28 +00:00
return (
<div className={classNames(Style.BoxHeaderOnly, className)} {...props}>
{children}
</div>
)
}