Appearance
Standard Library
Press includes pre-defined components that provide familiar HTML-like tags. These are regular components, not special syntax -- you can override them in your own <components> block.
Block Components
| Component | Equivalent | Description |
|---|---|---|
<frame> | Primitive | Layout container. Default direction="column". Cannot be overridden |
<p> | <frame> | Paragraph block. |
<h1> | <frame> + outline | Level 1 heading. Auto-added to "headings" outline. |
<h2> | <frame> + outline | Level 2 heading. |
<h3> | <frame> + outline | Level 3 heading. |
<h4> | <frame> + outline | Level 4 heading. |
<h5> | <frame> + outline | Level 5 heading. |
<h6> | <frame> + outline | Level 6 heading. |
<pre> | <frame preserve-whitespace="true"> | Preformatted text block. |
<hr> | Styled <frame> | Horizontal rule. |
<blockquote> | Styled <frame> | Block quotation. |
Inline Components
| Component | Equivalent | Description |
|---|---|---|
<b> / <strong> | <span font-style="bold"> | Bold text. |
<i> / <em> | <span font-style="italic"> | Italic text. |
<u> | <span text-decoration="underline"> | Underlined text. |
<s> | <span text-decoration="strikethrough"> | Strikethrough text. |
<code> | <span> with monospace font | Code/monospace text. |
Table Components
| Component | Equivalent | Description |
|---|---|---|
<tr> | Table row primitive | Table row. |
<td> | Table cell primitive | Table data cell. |
<th> | Table cell (bold, centred) | Table header cell. |
List Components
| Component | Description |
|---|---|
<ul> | Unordered list (bullet markers). |
<ol> | Ordered list (numbered markers). |
<li> | List item. |