PageBody
A wrapper that styles plain HTML content: headings, paragraphs, lists, code and quotes.
On this page
Examples
Prose
Why static first
Pages render on the server and stay light. Read the installation guide to start.
- No script until you ask for it.
- Menus and tabs run in the browser.
Plain HTML in, readable page out.Razor
<div class="w-full max-w-2xl rounded-lg border border-(--klyroo-border) bg-(--klyroo-bg) px-6">
<KlyPageBody Class="mt-0 pb-6 pt-2">
<h2>Why static first</h2>
<p>Pages render on the server and stay <code>light</code>. Read the <a href="/docs/installation">installation guide</a> to start.</p>
<ul>
<li>No script until you ask for it.</li>
<li>Menus and tabs run in the browser.</li>
</ul>
<blockquote>Plain HTML in, readable page out.</blockquote>
</KlyPageBody>
</div>API
KlyPageBody
Styles the plain HTML inside it, such as rendered Markdown.
Parameters
| Name | Type | Description |
|---|---|---|
Class |
string |
Classes added to the root element, merged last so they win over the theme. |
Ui |
PageBodyUi |
Per-instance class overrides of the slots of the page body, see PageBodyUi . They are merged after the theme and the Class parameter wins on the root slot. |
Slots
| Name | Type | Description |
|---|---|---|
ChildContent |
RenderFragment |
The HTML or Razor content to style, such as rendered Markdown. |
Ui slots
Ui takes a PageBodyUi with one class string per slot, merged after the theme.
| Slot | Styles |
|---|---|
Root |
Classes merged into the root slot of KlyPageBody , after the theme and the app configuration. |