mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-25 14:34:19 +00:00
✨ Add Radio component
This commit is contained in:
parent
5afdc1fb91
commit
d87b33ffdb
2 changed files with 16 additions and 0 deletions
12
code/frontend/src/components/Radio.js
Normal file
12
code/frontend/src/components/Radio.js
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
import React from "react"
|
||||||
|
import Style from "./Radio.module.css"
|
||||||
|
import classNames from "classnames"
|
||||||
|
|
||||||
|
|
||||||
|
export default function Radio({ children, className, ...props }) {
|
||||||
|
return (
|
||||||
|
<input type={"radio"} className={classNames(Style.Radio, className)} {...props}>
|
||||||
|
{children}
|
||||||
|
</input>
|
||||||
|
)
|
||||||
|
}
|
4
code/frontend/src/components/Radio.module.css
Normal file
4
code/frontend/src/components/Radio.module.css
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
.Radio {
|
||||||
|
height: 25px;
|
||||||
|
width: 25px;
|
||||||
|
}
|
Loading…
Reference in a new issue