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.
skynet-webportal/packages/dashboard-v2/src/components/TextInputBasic/TextInputBasic.js

31 lines
768 B
JavaScript
Raw Normal View History

2022-02-18 08:20:47 +00:00
import PropTypes from "prop-types";
/**
* 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>
<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"
}
/>
</div>
2022-02-18 08:20:47 +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
};