mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-30 08:24:20 +00:00
22 lines
576 B
JavaScript
22 lines
576 B
JavaScript
|
import React from "react"
|
||
|
import Style from "./FormInline.module.css"
|
||
|
import classNames from "classnames"
|
||
|
|
||
|
|
||
|
/**
|
||
|
* A form displayed in a single line.
|
||
|
*
|
||
|
* @param children - The contents of the form.
|
||
|
* @param className - Additional class(es) to pass to the form.
|
||
|
* @param props - Additional props to pass to the form.
|
||
|
* @returns {JSX.Element}
|
||
|
* @constructor
|
||
|
*/
|
||
|
export default function FormInline({ children, className, ...props }) {
|
||
|
return (
|
||
|
<form className={classNames(Style.FormInline, className)} {...props}>
|
||
|
{children}
|
||
|
</form>
|
||
|
)
|
||
|
}
|