2021-04-21 01:57:18 +00:00
|
|
|
import React from "react"
|
|
|
|
import Style from "./Input.module.css"
|
|
|
|
import classNames from "classnames"
|
|
|
|
|
|
|
|
|
2021-04-23 00:18:06 +00:00
|
|
|
/**
|
|
|
|
* 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 (
|
2021-04-23 00:18:06 +00:00
|
|
|
<input className={classNames(Style.Input, className)} {...props} />
|
2021-04-21 01:57:18 +00:00
|
|
|
)
|
|
|
|
}
|