1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-22 13:04:19 +00:00
pds-2021-g2-nest/nest_frontend/components/base/Radio.js

19 lines
471 B
JavaScript
Raw Normal View History

2021-04-22 16:38:08 +00:00
import React from "react"
import Style from "./Radio.module.css"
import classNames from "classnames"
2021-05-11 14:37:15 +00:00
/**
* A radio button.
*
* @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 Radio({ className, ...props }) {
2021-04-22 16:38:08 +00:00
return (
<input type={"radio"} className={classNames(Style.Radio, className)} {...props} />
2021-04-22 16:38:08 +00:00
)
}