resizable-textfield

A resizable texfield

Usage no npm install needed!

<script type="module">
  import resizableTextfield from 'https://cdn.skypack.dev/resizable-textfield';
</script>

README

resizable-textfield

stable licence

A React package that allows you to have a textfield with the length of its text dynamically.

  • Useful to create search fields
  • Lightweight
  • Customizable

Example usage

npm i "resizable-textfield"
import ResizableTexField from "resizable-textfield";

const App = () => {
    return (
        <ResizableTexField placeholder="bar foo" />
    );
};

Important props

  • 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.