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

21 lines
2.1 KiB
Plaintext

page ResourcesGuide {
layout = "showcase"
seo {
title = "Resources"
description = "Use the component API pages, blocks, and templates as production starting points."
}
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>Resources</span></nav>
<header class="docs-intro"><span class="showcase-eyebrow">Getting Started</span><h1>Resources</h1><p>Use the component API pages, blocks, and templates as production starting points.</p></header>
<section class="guide-section"><h2>Overview</h2><p>Use the component API pages, blocks, and templates as production starting points.</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>Choose the right starting point</h2><p>Component pages document individual controls. Blocks combine controls into sections. Examples demonstrate complete workflows. Templates provide product-oriented starting pages with source you can adapt.</p><pre><code>// DataTable accepts arrays directly through bindings.
state rows = [<span>&#123;</span> id: 1, name: "Northwind" <span>&#125;</span>]
state columns = [<span>&#123;</span> key: "name", label: "Account" <span>&#125;</span>]
&lt;DataTable rows="<span>&#123;</span>rows<span>&#125;</span>" columns="<span>&#123;</span>columns<span>&#125;</span>" /&gt;</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>
}
}