A React package that allows you to have a textfield with the length of its text dynamically.
- Useful to create search fields
- Lightweight
- Customizable
npm i "resizable-textfield"
import ResizableTexField from "resizable-textfield";
const App = () => {
return (
<ResizableTexField placeholder="bar foo" />
);
};
-
value (String)
: Initial value (Optional) * -
placeholder (String)
: Placeholder (Optional) * -
styles (Object)
: Custom styles (Optional)
(*) At least one of these fields must be passed or an exception will be thrown.