mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-30 00:14:19 +00:00
18 lines
488 B
JavaScript
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>
|
|
)
|
|
}
|