PHP Classes


Recommend this page to a friend!
  Classes of Naif Alshaye  >  Laravel Nova Text Field with Icon  >  >  Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Laravel Nova Text Field with Icon
Show a text field with custom icon in Laravel Nova
Author: By
Last change:
Date: 2 years ago
Size: 1,199 bytes


Class file image Download

Nova text field with customizable font-awesome icons

A Laravel Nova text field with a custom icon


You can install the package in to a Laravel app that uses Nova via composer:

composer require naif/text-with-icon


<h4>Add the below to nova/resources/views/layout.blade.php</h4>

<link rel="stylesheet" href="" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">

<h4>Add the below to Nova/User.php resource:</h4>

      ->icon('fab fa-twitter-square') //set icon full name. Browse icon gallery at
      ->position('in') //here you can set icon position to be inside or outside the text field.
      ->color('#1997EF'),//also you can set icon color

<img src="" width="700">



The MIT License (MIT). Please see License File for more information.

For more information send a message to info at phpclasses dot org.