Astro Components
Type to search documentation.

Overview

Choose the right component for each documentation problem.

Use @prosefly/astro-components when your docs have outgrown plain Markdown but you still want authors to write normal MDX. The package focuses on common documentation jobs rather than application UI: explain risk, compare options, show structure, and guide readers through a task.

Choose By Reader Need

Keep pages scannable

Prefer the smallest component that solves the reader’s problem. A page with a few well-placed components is usually easier to read than a page where every paragraph is boxed or interactive.

Visual Editing With Prosefly

Prosefly natively supports Prosefly components in its visual editor. Authors can create and edit content with these components visually, alongside the Markdown and MDX authoring options described here.

Build A Page

  1. Start with plain Markdown.

    Write the explanation first. Add components only where the reader needs a stronger structure than headings, paragraphs, and lists.

  2. Import locally.

    Import components at the top of the MDX file so the page makes its own dependencies obvious.

    mdx
    import { Callout, Steps } from '@prosefly/astro-components';
  3. Use transforms for repeated patterns.

    In standalone Astro projects, enable the package-manager tab or image transform that matches the content. Dahlia and Lotus enable both automatically.

  4. Theme once in the shell.

    Configure --pf-* custom properties in the site layout, not in each MDX page.

Users of Dahlia or Lotus usually start at step 2 because their themes already configure the Markdown transforms, Iconify preload middleware, and shared styles.

Last updated Oct 19, 2026