loicdelanoe/statamic-inertia-starter

The skeleton application for the Laravel framework.

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:project

pkg:composer/loicdelanoe/statamic-inertia-starter

v1.0.1 2026-01-14 15:49 UTC

This package is auto-updated.

Last update: 2026-01-14 16:02:02 UTC


README

A starter template for quickly building Statamic projects with Inertia.js and Vue 3.

⚠️ Warning: This project is currently in development. APIs and features may change without notice.

Introduction

This starter kit provides a basic setup for building Statamic projects with Inertia.js and Vue 3. It relies on the statamic-inertia-adapter package to provide a seamless integration between Statamic and Inertia.js.

If you want to use another front-end framework such as React or Svelte, you may visit the official Inertia.js documentation and the Statamic documentation for more information. It is planned to support other front-end frameworks in the future.

Installation

You can install this starter kit in two ways:

Using Laravel

Run the following command to create a new Laravel project with the starter kit:

laravel new --using loicdelanoe/statamic-inertia-starter

Using Composer

Alternatively, you can create a new project via Composer:

composer create-project loicdelanoe/statamic-inertia-starter

Usage

Forms

You can use Statamic’s native forms directly. A Form component is included in the starter kit for this purpose.

Example:

<Form :form="page.form" class="flex flex-col gap-4" v-slot="{ processing, errors, formData, success }">
    <span v-if="success" class="font-semibold text-green-500">Form submitted successfully!</span>

    <div class="flex flex-col" v-for="field in page.form.fields" :key="field.handle">
        <label class="pb-1" :for="field.handle">{{ field.display }}</label>
        <input
            :id="field.handle"
            :type="field.type"
            :name="field.handle"
            class="border"
            v-model="formData[field.handle]"
            :disabled="processing"
        />
        <span v-if="errors[field.handle]" class="mt-1 text-sm font-semibold text-red-500">{{ errors[field.handle] }}</span>
    </div>

    <button type="submit" class="bg-white px-2 py-1.5 text-black" :disabled="processing">Submit</button>
</Form>

Props

  • form
    The Statamic form object (e.g. page.form).

Slot properties

The Form component exposes the following variables through its slot:

  • processing
    booleantrue while the form submission is being processed.

  • errors
    object — validation errors returned by the form submission, indexed by field handle.

  • formData
    object — a reactive object containing the form field values.

  • success
    booleantrue when the form has been successfully submitted.