As of August 2024, Splade is no longer actively maintained. Though we will try to keep up with future Laravel and PHP versions, we discourage using Splade in new projects.

After a period of reflection, we've come full circle and decided to bring the magic of Splade back to Inertia, where it all started. Please check out this new chapter in our journey: Inertia UI.

X-Splade-Content Component

All templates are passed to the Vue render engine. Still, sometimes you want to output raw, pre-rendered HTML, and you might want to bypass Vue's interpolation using the Content Component. A typical example is pre-rendered Markdown content. Note that the content is static, and you can't pass Splade or Vue components.

<x-splade-content :html="$renderedMarkdown" />

By default, the element is rendered as a div, but you may customize it, as well as pass other attributes:

<x-splade-content as="article" class="prose" :html="$renderedMarkdown" />

As stated in the Vue documentation, only use this component with trusted content and never on user-provided content, as it may lead to XSS attacks.