1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2025-02-16 12:43:58 +00:00

Add Checkbox component

This commit is contained in:
Stefano Pigozzi 2021-04-22 18:36:42 +02:00
parent 19ee9ae23f
commit 5afdc1fb91
Signed by untrusted user who does not match committer: steffo
GPG key ID: 6965406171929D01
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,12 @@
import React from "react"
import Style from "./Checkbox.module.css"
import classNames from "classnames"
export default function Checkbox({ children, className, ...props }) {
return (
<input type={"checkbox"} className={classNames(Style.Checkbox, className)} {...props}>
{children}
</input>
)
}

View file

@ -0,0 +1,4 @@
.Checkbox {
height: 25px;
width: 25px;
}