1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-24 14:04:19 +00:00
pds-2021-g2-nest/nest_frontend/components/base/BoxFullScrollable.js

24 lines
797 B
JavaScript

import React from "react"
import Style from "./BoxFullScrollable.module.css"
import classNames from "classnames"
import BoxFull from "./BoxFull"
/**
* A {@link BoxFull} whose body supports scrolling.
*
* @param children - The contents of the box body.
* @param childrenClassName - Additional class(es) added to the inner `<div>` acting as the body.
* @param props - Additional props to pass to the box.
* @returns {JSX.Element}
* @constructor
*/
export default function BoxFullScrollable({ children, childrenClassName, ...props }) {
return (
<BoxFull childrenClassName={classNames(Style.BoxScrollableBody, childrenClassName)} {...props}>
<div className={classNames(Style.ScrollContainer)}>
{children}
</div>
</BoxFull>
)
}