21 lines
2.1 KiB
Plaintext
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>{</span> id: 1, name: "Northwind" <span>}</span>]
|
|
state columns = [<span>{</span> key: "name", label: "Account" <span>}</span>]
|
|
<DataTable rows="<span>{</span>rows<span>}</span>" columns="<span>{</span>columns<span>}</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>
|
|
}
|
|
}
|