Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Livewire 3 layout #68

Open
mjhcremer opened this issue Jul 3, 2024 · 1 comment
Open

Livewire 3 layout #68

mjhcremer opened this issue Jul 3, 2024 · 1 comment

Comments

@mjhcremer
Copy link

The documentation says that the package works with Livewire. But in the documentation I cannot find any explanation how to implement it with Livewire 3 that needs a layout blade file.
If I use Livewire for full page components how must it be implemented

@takielias
Copy link
Owner

@mjhcremer

@extends('tablar::page')

@section('content')
    <!-- Page header -->
    <div class="page-header d-print-none">
        <div class="container-xl">
            <div class="row g-2 align-items-center">
                <div class="col">
                    <!-- Page pre-title -->
                    <div class="page-pretitle">
                        Livewire
                    </div>
                    <h2 class="page-title">
                        Dashboard
                    </h2>
                </div>
                <!-- Page title actions -->
            </div>
        </div>
    </div>
    <!-- Page body -->
    <div class="page-body">
        <div class="container-xl">
            <div class="row row-deck row-cards">
                <div class="col-12">
                    <div class="card">
                        <div class="card-header">
                            <h3 class="card-title">Livewire</h3>
                        </div>
                        <div class="card-body border-bottom py-3">
                            {{$slot}}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection

Put this as your Layout file & try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants