Downloads
Stars
Version
A simple widget for laravel Nova Dashboard.
You can install the package via composer:
composer require digital-creative/value-widget
use DigitalCreative\NovaDashboard\Filters;
use DigitalCreative\ValueWidget\ValueWidget;
use Laravel\Nova\Http\Requests\NovaRequest;
class MyWidget extends ValueWidget
{
public function configure(NovaRequest $request): void
{
$this->icon('<svg></svg> or heroicons name');
$this->title('My Widget');
$this->textColor(dark: '#845adf', light: '#845adf');
$this->backgroundColor('#845adf4f');
}
public function value(Filters $filters): mixed
{
//
}
}
Please give a ⭐️ if this project helped you!
Help card
that comes with Nova.The MIT License (MIT). Please see License File for more information.