View Source Inertia.HTML (Inertia v2.0.0)

HTML components for Inertia views.

Summary

Functions

Attributes

  • content (:list) (required) - The list of tags to inject into the head tag.

Attributes

  • component (:string) (required) - The name of the JavaScript page component.
  • props (:map) (required) - The page props (data).
  • url (:string) (required) - The page URL.
  • version (:string) (required) - The current asset version.

Attributes

  • body (:string) (required) - The server-rendered body.

Attributes

  • prefix (:string) - A prefix added before the content of inner_block. Defaults to nil.
  • suffix (:string) - A suffix added after the content of inner_block. Defaults to nil.

Slots

  • inner_block (required) - Content rendered inside the title tag.

Functions

inertia_head(assigns)

Attributes

  • content (:list) (required) - The list of tags to inject into the head tag.

inertia_page(assigns)

Attributes

  • component (:string) (required) - The name of the JavaScript page component.
  • props (:map) (required) - The page props (data).
  • url (:string) (required) - The page URL.
  • version (:string) (required) - The current asset version.

inertia_ssr(assigns)

Attributes

  • body (:string) (required) - The server-rendered body.

inertia_title(assigns)

Attributes

  • prefix (:string) - A prefix added before the content of inner_block. Defaults to nil.
  • suffix (:string) - A suffix added after the content of inner_block. Defaults to nil.

Slots

  • inner_block (required) - Content rendered inside the title tag.