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:
parent
19ee9ae23f
commit
5afdc1fb91
2 changed files with 16 additions and 0 deletions
12
code/frontend/src/components/Checkbox.js
Normal file
12
code/frontend/src/components/Checkbox.js
Normal 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>
|
||||
)
|
||||
}
|
4
code/frontend/src/components/Checkbox.module.css
Normal file
4
code/frontend/src/components/Checkbox.module.css
Normal file
|
@ -0,0 +1,4 @@
|
|||
.Checkbox {
|
||||
height: 25px;
|
||||
width: 25px;
|
||||
}
|
Loading…
Add table
Reference in a new issue