Ir al contenido

Prose

Texto escrito para leer: líneas de unos 72 caracteres, títulos con espacio encima y enlaces que se ven como enlaces.

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

En esta página
  1. Un artículo
  2. Cuándo usarlo
  3. Para todos

Un artículo

Envuelve con él lo que sale de Markdown. El texto mantiene el ancho de lectura; el código, las tablas y las figuras usan toda la columna.

How tables keep your data

A table is a set of rows with the same columns. Each column has a type, and Sypnia checks every value against it, so a date is always a date. Read the column types for the whole list.

  • Text, numbers, dates and true or false.
  • A link to a row of another table.
  • A file, kept next to the row.

When a value does not fit

The row is not saved, and the message says which column and why: amount must be a number.

Text sits on the page; only machine objects get a plate.
Código
---
import Prose from '@sypnia/ui/astro/Prose.astro';
---
<div class="sy-docs" style="min-height:0;background:none">
<Prose>
  <h2>How tables keep your data</h2>
  <p>A <strong>table</strong> is a set of rows with the same columns. Each column has a type, and Sypnia checks every value against it, so a date is always a date. Read <a href="#">the column types</a> for the whole list.</p>
  <ul><li>Text, numbers, dates and true or false.</li><li>A link to a row of another table.</li><li>A file, kept next to the row.</li></ul>
  <h3>When a value does not fit</h3>
  <p>The row is not saved, and the message says which column and why: <code>amount must be a number</code>.</p>
  <blockquote>Text sits on the page; only machine objects get a plate.</blockquote>
</Prose>
</div>

Cuándo usarlo

Úsalo cuando

  • Cualquier texto largo: una guía, una página de referencia, una política.

No lo uses cuando

  • Texto de interfaz: las etiquetas, los botones y los mensajes cortos usan los estilos de sus componentes.

Para todos

  • Los títulos conservan sus niveles; los enlaces están subrayados, no solo coloreados.
  • El largo de línea y el espaciado siguen las pautas de lectura (unos 72 caracteres, interlineado de 1,68).
  1. Un artículo
  2. Cuándo usarlo
  3. Para todos

    Busca páginas, secciones y términos