# Fumadocs UI (the default theme of Fumadocs): Components
URL: /docs/ui/components
Source: https://raw.githubusercontent.com/fuma-nama/fumadocs/refs/heads/main/apps/docs/content/docs/ui/components/index.mdx

Additional components to improve your docs

## Overview [#overview]

Additional components that you can use:

- [Accordion](/docs/ui/components/accordion): Add Accordions to your documentation
- [Auto Type Table](/docs/ui/components/auto-type-table): Auto-generated type table
- [Banner](/docs/ui/components/banner): Add a banner to your site
- [Code Block](/docs/ui/components/codeblock): Displaying Shiki highlighted code blocks
- [Code Block (Dynamic)](/docs/ui/components/dynamic-codeblock): A codeblock that also highlights code
- [Files](/docs/ui/components/files): Display file structure in your documentation
- [GitHub Info](/docs/ui/components/github-info): Display your GitHub repository information
- [Graph View](/docs/ui/components/graph-view): A graph of all pages.
- [Zoomable Image](/docs/ui/components/image-zoom): Allow zoom-in images in your documentation
- [Inline TOC](/docs/ui/components/inline-toc): Add Inline TOC into your documentation
- [Steps](/docs/ui/components/steps): Adding steps to your docs
- [Tabs](/docs/ui/components/tabs): A Tabs component built with Base UI, with additional features such as persistent and shared value.
- [Type Table](/docs/ui/components/type-table): A table for documenting types

### MDX Components [#mdx-components]

The default MDX components include Cards, Callouts, Code Blocks and Headings.

```ts
import defaultMdxComponents from 'fumadocs-ui/mdx';
```

### Relative Link [#relative-link]

<Callout type="warn">
Server Component only.
</Callout>

To support links with relative file path in `href`, override the default `a` component with:

```tsx title="app/docs/[[...slug]]/page.tsx"
import { createRelativeLink } from 'fumadocs-ui/mdx';
import { source } from '@/lib/source';
import { getMDXComponents } from '@/components/mdx';

const page = source.getPage(['...']);

return (
  <MdxContent
    components={getMDXComponents({
      // override the `a` tag
      a: createRelativeLink(source, page),
    })}
  />
);
```

On Astro, pass it to `<Content />`, which renders it like Astro MDX:

```astro title="src/pages/docs/[...slug].astro"
<Content components={{ a: createRelativeLink(source, page) }} />
```

```mdx
[My Link](./file.mdx)
```

Example: [`../../(integrations)/feedback.mdx`](/docs/next/integrations/feedback)