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

20 lines
470 B
JavaScript
Raw Normal View History

2021-04-26 16:36:41 +00:00
import React from "react"
import Style from "./FormButton.module.css"
import classNames from "classnames"
2021-04-29 14:58:31 +00:00
import Button from "../Button"
2021-04-26 16:36:41 +00:00
/**
* A {@link Button} ready to be used in a {@link FormLabelled}.
*
* @returns {JSX.Element}
* @constructor
*/
export default function FormButton({ children, className, ...props }) {
return (
<Button className={classNames(Style.FormButton, className)} {...props}>
{children}
</Button>
)
}