Add floating label to ngx-formly form

james Makinde Source

I am trying to add the floating label shown at

<div class="form-group input-group">
  <label class="has-float-label">
    <input class="form-control" type="text" placeholder="Name"/>
    <span>First</span>
  </label>
  <label class="has-float-label">
    <input class="form-control" type="text" placeholder="Surname"/>
    <span>Last</span>
  </label>
</div>

to the label generated by ngx-formly tool but I cant seem to find any way since it doesn't support custom components like other fieldtypes in the formly tool. Any idea how I can add the floating label?

javascriptcsshtml5

Answers

comments powered by Disqus