import "./input.css"; import { useState, useRef } from "react"; const TextInput = ({ name, label, required, inner_type }) => { const [lc, setLc] = useState(""); const inputRef = useRef(); const a = () => { setLc("label-with-focus"); }; const b = () => { if (inputRef.current.value.length === 0) { setLc(""); } }; return ( <>
); }; export default TextInput;