Skip to content

reportei/laraground

Repository files navigation

Just add config in View Component Class

class Button extends Component
{
    ...
    protected $lgDesc = 'Form/Button';
    protected $lgView = 'components.form.button';
    
    ...
    public static function laraground()
    {
        return [
            'attributes' => [
                'label' => 'Button',
                'type' => 'button',
                'color' => 'primary',
                'size' => 'md',
            ],
            'slots' => [
                'slot' => 'label' // targint label attribute for control binds
            ],
            'model' => '' // wire:model when is input, select or textarea
                          // see https://laravel-livewire.com/docs/data-binding/
        ];
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published