1
Fork 0
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:
Stefano Pigozzi 2021-04-22 18:38:08 +02:00
parent 5afdc1fb91
commit d87b33ffdb
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 "./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>
)
}

View file

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