Files
WRNexusJS/examples/component-showcase/app/pages/framework-guides.wrn
T

21 lines
2.0 KiB
Plaintext

page FrameworkGuidesGuide {
layout = "showcase"
seo {
title = "Framework guides"
description = "WRNexus components use native HTML semantics and framework component mounts."
}
view {
<article class="page-docs guide-page">
<nav class="docs-breadcrumbs" aria-label="Breadcrumb"><a href="/docs">Docs</a><span aria-hidden="true">/</span><span>Framework guides</span></nav>
<header class="docs-intro"><span class="showcase-eyebrow">Getting Started</span><h1>Framework guides</h1><p>WRNexus components use native HTML semantics and framework component mounts.</p></header>
<section class="guide-section"><h2>Overview</h2><p>WRNexus components use native HTML semantics and framework component mounts.</p></section><section class="guide-section"><h2>Configuration</h2><p>Use the design switcher in the header to test this setting live.</p></section><section class="guide-section"><h2>Component behavior</h2><p>The setting is inherited by components, blocks, templates, and playground previews.</p></section>
<section class="guide-section"><h2>Connect a field to page state</h2><p>Props supply initial configuration. Output handlers receive payload directly. Use payload.value to update your page state and display the committed result.</p><pre><code>page NameForm <span>&#123;</span>
state name: string = ""
view <span>&#123;</span> &lt;Input label="Your name" value="<span>&#123;</span>name<span>&#125;</span>" @input="name = payload.value" /&gt;&lt;p&gt;Hello <span>&#123;</span>name<span>&#125;</span>&lt;/p&gt; <span>&#125;</span>
<span>&#125;</span></code></pre><h3>Verify the result</h3><p>Open the matching component page, change its options, and try the keyboard controls. Copy the demonstrated configuration into your page, then replace sample content with your data.</p></section>
<nav class="guide-next"><a href="/components/button">Explore components <span aria-hidden="true">→</span></a><a href="/block-library">Browse blocks <span aria-hidden="true">→</span></a></nav>
</article>
}
}