This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
2022-02-18 08:20:47 +00:00
|
|
|
import PropTypes from "prop-types";
|
2022-02-17 11:53:32 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Primary UI component for user interaction
|
|
|
|
*/
|
|
|
|
export const TextInputBasic = ({ label, placeholder }) => {
|
|
|
|
return (
|
2022-02-18 08:20:47 +00:00
|
|
|
<div className={""}>
|
|
|
|
<p className={"font-sans uppercase text-palette-300 text-inputLabel mb-textInputLabelBottom"}>{label}</p>
|
2022-02-17 11:53:32 +00:00
|
|
|
<input
|
|
|
|
placeholder={placeholder}
|
|
|
|
className={
|
2022-02-18 08:20:47 +00:00
|
|
|
"w-full bg-palette-100 h-textInput px-textInputBasicX focus:outline-none bg-transparent " +
|
|
|
|
"placeholder-palette-400 text-content tracking-inputPlaceholder text-textInput"
|
2022-02-17 11:53:32 +00:00
|
|
|
}
|
|
|
|
/>
|
|
|
|
</div>
|
2022-02-18 08:20:47 +00:00
|
|
|
);
|
|
|
|
};
|
2022-02-17 11:53:32 +00:00
|
|
|
|
|
|
|
TextInputBasic.propTypes = {
|
|
|
|
/**
|
|
|
|
* Icon to place in text input
|
|
|
|
*/
|
|
|
|
label: PropTypes.string,
|
|
|
|
/**
|
|
|
|
* Input placeholder
|
|
|
|
*/
|
|
|
|
placeholder: PropTypes.string,
|
2022-02-18 08:20:47 +00:00
|
|
|
};
|