digital-creative/nova-welcome-card

A configurable version of the `Help card` that comes with Nova.

Downloads

9522

Stars

4

Version

v0.0.2

Nova Welcome Card

Latest Version on Packagist Total Downloads License

Nova Welcome Card in Action

This is an enhanced version of the Help card that comes with Nova, offering additional configurability.

Installation

You can install the package via composer:

composer require digital-creative/nova-welcome-card

Basic Usage

use DigitalCreative\NovaWelcomeCard\WelcomeCard;

class User extends Resource {

    public function cards(NovaRequest $request): array
    {
        return [
             WelcomeCard::make()
                ->title('...') // optional
                ->description('...') // optional
                ->addItem(icon: 'home', title: '...', content: '...') // need at least 2 for it to looks good
                ->addItem(icon: '<svg>...</svg>', title: '...', content: '...'),
        ];
    }

}

⭐️ Show Your Support

Please give a ⭐️ if this project helped you!

Other Packages You Might Like

License

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

dcasia

Author

dcasia