Skip to content

Aside

An aside in a document, between two rules. plain is «In plain words»: Sypnia speaking to the reader who does not program.

import Aside from '@sypnia/ui/astro/Aside.astro'

On this page
  1. Every kind
  2. When to use it
  3. For everyone

Every kind

plain, note, tip, warning and danger. A title adds to the label instead of replacing it.

Code
---
import Aside from '@sypnia/ui/astro/Aside.astro';
---
<div class="sy-docs" style="min-height:0;background:none">
  <Aside type="plain">Sypnia keeps a copy of every change for 30 days, so a mistake can be undone.</Aside>
  <Aside>Tokens can read, or read and write. Give each app only what it needs.</Aside>
  <Aside type="tip" title="Faster imports">Split a file bigger than 1 GB into parts; they import in parallel.</Aside>
  <Aside type="warning">Deleting a table deletes its rows. There is no way back after 30 days.</Aside>
  <Aside type="danger">Never paste a token in a public repository. Revoke it at once if you did.</Aside>
</div>

When to use it

Use it when

  • Something the reader should not miss, next to the text it is about.

Do not use it when

  • Something that happened in an app: that is Alert.
  • More than two in a row: the page is turning into asides.

For everyone

  • It is a named complementary region; the kind is written in its label, not only drawn.
  1. Every kind
  2. When to use it
  3. For everyone

    Search pages, sections and terms