Text Input

Renders a text input field

<.text_input id="text-input-single-default" type="text" class="" placeholder="Type here ....">
</.text_input>
<.text_input id="text-input-single-password" type="password" class="" placeholder="Type here .....">
</.text_input>
<.text_input id="text-input-single-with-icon" type="text" class="" placeholder="Search...">
    <:icon>
      <.icon name="hero-magnifying-glass" />
    </:icon>
</.text_input>

Password needs to be six or more letters

<.text_input error id="text-input-single-with-error" type="password" value="Hello" class="" error_message="Password needs to be six or more letters" placeholder="Type ...">
</.text_input>