marko-inertia-svelte Svelte Themes

Marko Inertia Svelte

[READ-ONLY] Svelte companion for marko/inertia - configuration and frontend marker binding. Issues and PRs at https://github.com/marko-php/marko

marko/inertia-svelte

Svelte companion for marko/inertia - configuration defaults and a frontend marker binding for Svelte.

Installation

composer require marko/inertia-svelte

Quick Example

use Marko\Inertia\Inertia;
use Marko\Routing\Http\Request;
use Marko\Routing\Http\Response;

class DashboardController
{
    public function __construct(
        private readonly Inertia $inertia,
    ) {}

    public function index(Request $request): Response
    {
        return $this->inertia->render(
            request: $request,
            component: 'Dashboard',
        );
    }
}

Documentation

Full usage, API reference, and examples: marko/inertia-svelte

Top categories

Loading Svelte Themes