New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

reportei/laraground

Laravel components playground
5
Install
composer require reportei/laraground:dev-master
PHP:^7.2.5
License:MIT
Last Updated:Aug 16, 2020
Links: GitHub  ·  Packagist
Maintainer: fontenele

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/
        ];
    }
}

Related Packages

bluestarsystem/aura-ui

Vibrant Depth UI component library for Laravel + Livewire + Alpine.js + Tailwind...

852 5
mijnui/mijnui

UI component library for Laravel.

638 0
datalogix/tallkit

A set of components to utilize in your Laravel Blade views using TALL stack.

329 0
leenuxus/jarenui

A Jaren-UI compatible Livewire component library for Laravel — 50+ components, d...

13 0