---
title: Components
published: true
tier: free
index: 1
---

# Components

Use these formats in a Markdown file in your source repository. Preview the
rendered page in Glue and [publish a release](../../getting-started/publish-your-first-project.md#publish-a-release)
to make it available to readers.

## Headings, paragraphs and links

Use `#` through `######` for headings. Leave a blank line between paragraphs.
Link to another page with its relative Markdown path, or use a full URL to
link to a different site.

```markdown
## Set up your project

Use **bold** for emphasis, *italics* for terms, ~~strikethrough~~ for obsolete
text and `inline code` for commands or identifiers.

See the [config reference](./config.md).

---

> Publish a new release after you change the source.
```

Three hyphens on their own line make a divider. Start a line with `>` to quote
text.

## Lists and tables

Use `-` for bullets, `1.` for ordered steps and `- [ ]` or `- [x]` for task
lists. Indent items to nest them.

```markdown
- Connect your repository
  - Choose your source branch

1. Review the content.
2. Publish a release.

- [x] Write the guide
- [ ] Verify the published links

| Setting | Default |
| --- | --- |
| Visibility | Public |
| Navigation | Visible |
```

## Copy lines and commands

Use a `copy` fence for one value, such as a URL, identifier or configuration
value. Glue displays a compact read-only row with a copy button. For long
values, the text scrolls horizontally and the button copies the full line.
Use one fence per value. A multiline `copy` fence renders as a regular code block.

````markdown
```copy
https://example.com/setup?source=docs&mode=guided
```
````

```copy
https://example.com/setup?source=docs&mode=guided
```

Use a `command` fence for a single terminal command. It uses the same row with
shell syntax highlighting.

````markdown
```command
npx glue-fast install-skills 'brickspacelab/glue-docs'
```
````

## Code blocks and prompts

Use a fenced code block for longer snippets. Add a language for highlighting.
Wrap the fence in `{% code title="…" %}` to show a filename or label in its
header. Use `{% prompt description="…" %}` to label a copyable agent prompt.

````markdown
{% code title="site.config.ts" %}
```typescript
export const site = { name: "Product guide" };
```
{% endcode %}

{% prompt description="Summarize this guide" %}
```text
Summarize the guide in three bullets.
Suggest a next step for a new reader.
```
{% endprompt %}
````

## Hints

Use `info`, `success`, `warning` or `danger` for the hint style. The body
supports Markdown.

```markdown
{% hint style="warning" %}
**Check visibility** before publishing your release.
{% endhint %}
```

## Tabs

Wrap named `tab` blocks in `tabs` to give readers a choice between instructions
for different tools or environments.

````markdown
{% tabs %}
{% tab title="npm" %}
```command
npm install example-sdk
```
{% endtab %}
{% tab title="pnpm" %}
```command
pnpm add example-sdk
```
{% endtab %}
{% endtabs %}
````

## Expandable sections

Use `<details>` with a `<summary>` label. Leave blank lines around the Markdown
body. Add the `open` attribute to expand it by default.

```markdown
<details>
<summary>Where do I change the page title?</summary>

Set `title` in the Markdown frontmatter.

</details>
```

## Steppers

Wrap each step in a `step` block and group them in a `stepper`. Glue numbers
the steps in order.

```markdown
{% stepper %}
{% step %}
### Connect GitHub

Select the repository that holds your Markdown.
{% endstep %}
{% step %}
### Publish

Choose the commit for your release.
{% endstep %}
{% endstepper %}
```

## Updates

Use `updates` to group changelog entries. Give each `update` a date in
`YYYY-MM-DD` format and optionally set `tags` to the text of its badge.

```markdown
{% updates %}
{% update date="2026-11-18" tags="Documentation" %}
### Copyable lines

Share a setup URL in a compact row that readers can copy.
{% endupdate %}
{% endupdates %}
```

## Page links, buttons and card grids

Wrap a Markdown link in `content-ref` to render it in a card. For a button
link, use an HTML anchor with `button primary`, `button secondary` or
`button outline`.

```markdown
{% content-ref %}
[Read the config reference](./config.md)
{% endcontent-ref %}

<a href="./frontmatter.md" class="button secondary">Read about frontmatter</a>
```

Use `<table data-view="cards">` to render one card per row. The first cell is
the title. Mark a link column with `data-card-target` and an image column
with `data-card-cover`. Use `data-hidden` to omit metadata from card text.

```html
<table data-view="cards">
  <thead><tr>
    <th>Title</th>
    <th>Description</th>
    <th data-hidden data-card-target>Link</th>
  </tr></thead>
  <tbody><tr>
    <td>Config</td>
    <td>Set release metadata and channels.</td>
    <td><a href="./config.md">Open config</a></td>
  </tr></tbody>
</table>
```

## Images, files and embeds

Use Markdown images with descriptive alt text. Use a `figure` and `figcaption`
when the image needs a visible caption. Use `file` to link to a downloadable
file by URL.

```markdown
![The release dialog](./images/release-dialog.png)

<figure>
  <img src="./images/release-dialog.png" alt="The release version field">
  <figcaption>Choose a version when you publish.</figcaption>
</figure>

{% file src="https://example.com/files/setup-checklist.pdf" title="Download the setup checklist" %}
```

Use `embed` with a URL and an optional title. Glue displays supported YouTube
and Vimeo URLs in a player. Other URLs appear as link cards.

```markdown
{% embed url="https://example.com/help" title="Open the help center" %}
```

## Diagrams and math

Use a `mermaid` fence for a Mermaid diagram. Use `$$…$$` inline for TeX math
or put opening and closing `$$` on their own lines for a displayed equation.

````markdown
```mermaid
flowchart LR
  A[Write Markdown] --> B[Review in Glue] --> C[Publish]
```

The Pythagorean theorem is $$a^2 + b^2 = c^2$$.

$$
\sum_{i=1}^{n} i = \frac{n(n+1)}{2}
$$
````

## Inline icons

Use `<i data-icon="books"></i>` or `<i data-icon="lightning"></i>` alongside
text. Keep the adjacent label so the meaning is available to every reader.

```html
<i data-icon="books"></i> Browse the reference
```
