Skip to content

Latest commit

 

History

History
92 lines (70 loc) · 2.46 KB

File metadata and controls

92 lines (70 loc) · 2.46 KB
title Components (Sample)
description A small showcase of the built-in MDX components with usage guidelines.

Quick component tour

These are example components from Documentation.AI. Use them to make pages easier to scan. Use for tips, warnings, and important notes. Break tasks into easy, numbered actions. Keep alternate examples tidy.

Callout: usage tips

When to use

  • Highlight important warnings or constraints that affect success
  • Call out tips that save time or prevent common mistakes
  • Emphasize prerequisites, permissions, or irreversible actions

When not to use

  • For every minor detail; overuse makes real warnings easy to ignore
  • As a replacement for clear prose and headings
  • To hide critical blocking information at the bottom of a long page

Steps (sample)

Start each page with a clear, short title. Tell readers what they will achieve. Point to the next page they should read.

Steps: usage tips

When to use

  • Readers must follow actions in a specific order
  • You describe tasks that can be completed in one sitting
  • You want to separate conceptual explanation from hands-on actions

When not to use

  • For unordered checklists where sequence does not matter
  • To document background concepts or architecture
  • For long, branching workflows that need their own dedicated guide

Tabs (sample)

```bash docs init my-project docs dev ``` Open the editor, choose a page, and start writing.

Tabs: usage tips

When to use

  • You show the same idea in multiple languages or platforms
  • You provide alternate setup paths, such as CLI versus UI
  • You want to keep short variants in one compact section

When not to use

  • When one variant is strongly recommended over the others
  • For long, independent flows that deserve separate pages
  • When content differs so much that readers must read all variants anyway