22 lines
2.0 KiB
Plaintext
22 lines
2.0 KiB
Plaintext
page InstallationGuide {
|
|
layout = "showcase"
|
|
seo {
|
|
title = "Installation"
|
|
description = "Install the package and import the shared stylesheet once in your application."
|
|
}
|
|
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>Installation</span></nav>
|
|
<header class="docs-intro"><span class="showcase-eyebrow">Getting Started</span><h1>Installation</h1><p>Install the package and import the shared stylesheet once in your application.</p></header>
|
|
<section class="guide-section"><h2>Overview</h2><p>Install the package and import the shared stylesheet once in your application.</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>Render your first component</h2><p>Import the shared UI stylesheet in your application entry. In a WRN page, use registered components directly. Keep user-editable values in page state and listen to typed outputs.</p><pre><code>import "@wrnexus/ui/ui.css"
|
|
|
|
page Welcome <span>{</span>
|
|
view <span>{</span> <Button label="Get started" href="/preview" /> <span>}</span>
|
|
<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>
|
|
<section class="guide-section"><h2>Quick start</h2><pre><code>bun add @wrnexus/ui</code></pre></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>
|
|
}
|
|
}
|