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

18 lines
488 B
JavaScript

import React from "react"
import Style from "./FormLabelled.module.css"
import classNames from "classnames"
/**
* A form with two columns: the leftmost one contains labels, while the rightmost one contains input elements.
*
* @returns {JSX.Element}
* @constructor
*/
export default function FormLabelled({ children, className, ...props }) {
return (
<form className={classNames(Style.LabelledForm, className)} {...props}>
{children}
</form>
)
}