1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-27 07:24:17 +00:00
pds-2021-g2-nest/nest_frontend/components/base/Input.js

19 lines
487 B
JavaScript
Raw Normal View History

2021-04-21 01:57:18 +00:00
import React from "react"
import Style from "./Input.module.css"
import classNames from "classnames"
/**
* A single-line box where the user can enter text.
*
* @param className - Additional class(es) to add to the element.
* @param props - Additional props to pass to the element.
* @returns {JSX.Element}
* @constructor
*/
export default function Input({ className, ...props }) {
2021-04-21 01:57:18 +00:00
return (
<input className={classNames(Style.Input, className)} {...props} />
2021-04-21 01:57:18 +00:00
)
}