import { nanoid } from "nanoid"; import PropTypes from "prop-types"; import { useMemo } from "react"; export const TextInputBasic = ({ label, placeholder, ...props }) => { const id = useMemo(() => `input-${nanoid()}`, []); return (
); }; TextInputBasic.propTypes = { /** * Icon to place in text input */ label: PropTypes.string, /** * Input placeholder */ placeholder: PropTypes.string, };