gittydocsgittydocs

Components

Built-in tabs, API tables, steps, file trees, accordions, code blocks, and Markdown callouts.

Gittydocs includes authoring components directly in .mdx pages. No imports, package installs, or ejection are needed. Use the component names with their exact capitalization, and put Markdown content between the tags.

ComponentUse it for
Code blocksHighlighted code with optional filename headers and a copy button.
Steps / StepNumbered instructions with optional step titles.
Files / Folder / FileCollapsible file trees with filename-based icons.
Accordions / AccordionExpandable content, with single or multiple items open.
Tabs / TabKeyboard-accessible alternatives with synchronized selections.
Type TableAn API reference from a manually authored property map.
Auto Type TableAn API reference generated from TypeScript at build time.
CalloutsGitHub-style notes, tips, important details, warnings, and cautions.

These JSX components belong in .mdx files. Ordinary code fences and Markdown callouts also work in .md files. Keep blank lines around Markdown paragraphs, lists, and code fences inside a component so they are parsed as Markdown.

Live example

  1. Write an MDX page

    Add your Markdown and built-in components to a .mdx file.

  2. Preview it

    Run your local docs preview and open the page. The components work without imports.

Paste this directly into a page to reproduce the demo:

guide.mdx
<Steps>
  <Step title="Write an MDX page">

Add your Markdown and built-in components to a `.mdx` file.

  </Step>
  <Step title="Preview it">

Run your local docs preview and open the page. The components work without imports.

  </Step>
</Steps>

Use the individual component pages for complete prop tables and more interactive demos. Each demo is followed by a fenced example you can copy.

Markdown exports

Copy page, its Copy page as Markdown for LLMs action, and generated per-page Markdown convert built-in components into portable text:

Built-in contentMarkdown output
Steps / StepNumbered step headings with the step body underneath. A missing title becomes “Step”.
Files / Folder / FileNested lists of filenames, folder names, and file descriptions.
Accordions / AccordionHeadings with each accordion's full body, even if it starts closed.
Tabs / TabA heading for each literal tab value and every panel's full content, regardless of browser selection.
TypeTableSafe literal property maps become Markdown tables. Dynamic expressions and JSX descriptions are preserved rather than executed.
AutoTypeTableA generated Markdown property table with types, defaults, descriptions, and required/deprecated information.
Markdown calloutsOriginal blockquotes and their [!NOTE], [!TIP], [!IMPORTANT], [!WARNING], or [!CAUTION] markers.

This preserves the meaning of a page without requiring an MDX renderer. Custom JSX and imports are preserved rather than stripped or executed. Dynamic component titles or names that cannot be converted safely are left intact too.

Syntax examples stay examples: components inside fenced code blocks or inline code are not converted. Fence language and title metadata are retained. Always put demonstration source—including custom export examples—in a code fence when you want readers to see it rather than run it.

For output paths and View as Markdown, see Page actions and Markdown output.