2021-04-22 16:36:42 +00:00
|
|
|
import React from "react"
|
|
|
|
import Style from "./Checkbox.module.css"
|
|
|
|
import classNames from "classnames"
|
|
|
|
|
|
|
|
|
2021-04-23 00:18:06 +00:00
|
|
|
/**
|
|
|
|
* 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 }) {
|
2021-04-22 16:36:42 +00:00
|
|
|
return (
|
2021-04-23 00:18:06 +00:00
|
|
|
<input type={"checkbox"} className={classNames(Style.Checkbox, className)} {...props} />
|
2021-04-22 16:36:42 +00:00
|
|
|
)
|
|
|
|
}
|