reportei/laraground
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
destech-hasar-cozumleri-a-s/larabite
Complete Flowbite component library for Laravel with Blade components, Tailwind...
717
0
robsontenorio/mary
Gorgeous UI components for Livewire powered by daisyUI and Tailwind
620,486
1,472
datalogix/tallkit
A set of components to utilize in your Laravel Blade views using TALL stack.
286
0