yhjohn / color-tag
A Laravel Nova field.
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Vue
Requires
- php: >=7.1.0
This package is not auto-updated.
Last update: 2025-06-11 14:55:22 UTC
README
Installation
You can install the package in to a Laravel app that uses Nova via composer:
composer require yhjohn/nova-color-tag
Usage
Just define your field as you normally would and in addition, pass in array of colors as the using the colors method,
Example
// ... use Yhjohn\ColorTag\ColorTag; public function fields(Request $request) { return [ // ... ColorTag::make('Color')->colors(['#FF0000', '#FFCC00']), ]; }
You can also pass in any valid HTML Color Names
ColorTag::make('Color')->colors(['AliceBlue', 'Cornsilk']),