I have been utilizing the Material design lite library in an attempt to replicate the Floating text box feature seen in Gmail by Google. Despite not finding any official documentation on this particular component, I decided to experiment with the following code snippet:
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label has-placeholder">
<input class="mdl-textfield__input" type="text" id="sample5" placeholder="">
<label class="mdl-textfield__label" for="sample5">Text lines...</label>
</div>
Upon testing this code, the resulting design resembled something like this:
https://i.sstatic.net/ppxVq.png
My goal is to achieve a text box design similar to the one displayed here:
https://i.sstatic.net/hYsyo.png
Is there a particular approach or method to achieve this specific design?