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

18 lines
479 B
JavaScript

import React from "react"
import Style from "./Checkbox.module.css"
import classNames from "classnames"
/**
* A checkbox.
*
* @param className - Additional class(es) to add to the checkbox.
* @param props - Additional props to pass to the checkbox.
* @returns {JSX.Element}
* @constructor
*/
export default function Checkbox({ className, ...props }) {
return (
<input type={"checkbox"} className={classNames(Style.Checkbox, className)} {...props} />
)
}