Skip to content

Form field for javaabu/forms, @javaabu/forms and stencil #8

Closed

Description

@n4ff4h

A Blade form component, a React field for @javaabu/forms, and a stencil field, with model binding and validation errors.

Activity

  1. added
    next-genNext-gen Javaabu packages
    featurePackage feature from the spec
    on Nov 4, 2026
  2. n4ff4h commented on Nov 5, 2026

    @n4ff4h
    CollaboratorAuthor

    Done on main.

    • Blade: <x-block-editor::editor name="body" :model="$post" /> extends forms v2's Input (model binding, old input, label, help, errors, inline). It passes errors on blocks to the editor and requires the editor, the stylesheet and the profile's block scripts through manifest.
    • React: BlockEditorField for @javaabu/forms (useField, useFieldValue, the form's errors).
    • Stencil: Javaabu\BlockEditor\Stencil\BlockEditorField::make('body')->profile()->required()->maxBlocks() (Blade view + the block-editor React type via StencilBlockEditor).

    Limitation: @javaabu/forms doesn't export useFieldState / splitFieldProps / usePublishField, so the React field keeps its own state. It works with <Form> and plain posts. With Inertia useForm(), bind it with value/onChange (documented). Requested in Javaabu/react-forms#23. It isn't blocking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurePackage feature from the specnext-genNext-gen Javaabu packages

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions