Skip to content
On this page

Textinput

js
import Textinput from "@/components/Textinput";

const Example = () => {
  return (
    <div>
      <Textinput
        label="Project Name*"
        name="pn"
        type="text"
        placeholder="Management dashboard "
      />
    </div>
  );
};

TIP

You can use html textarea attribute via props. For example: name="pd", placeholder="Write a short description about your project" You can also use label props for label text.

Note

For label and textarea connection use name props. You can also make textarea horizontal by using horizontal props. Pass error & success props for error message.

COPYRIGHT © 2022 Codeshaper, All rights reserved.