Skip to content

MarvinCorro/easy-text-input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Easy Text Input

This project provides a simple and easy-to-use text input component for front-end development.

API

The text input component exposes the following API:

  • value: The current value of the input.
  • onChange: A callback function triggered when the input value changes.
  • placeholder: An optional placeholder text to display when the input is empty.

To use the text input component, simply import it into your project and pass the necessary props. Here's an example:

import Input from 'easy-text-input';

function App() {
  const [inputValue, setInputValue] = useState('');

  const handleInputChange = (event) => {
    setInputValue(event.target.value);
  };

  return (
    <div>
      <h1>Easy Text Input Example</h1>
      <Input
        value={inputValue}
        onChange={handleInputChange}
        placeholder="Enter your text here"
      />
    </div>
  );
}

Feel free to customize the component according to your project's needs.

About

An easy input starter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published