Effective documentation transcends mere text. It's about engaging readers, facilitating understanding, and providing a comprehensive guide that's both informative and visually appealing. uDocs, empowered by Sanity CMS, takes documentation to the next level by supporting a variety of rich content components. This guide explores these components, showcasing how they can be integrated into your documentation to create a dynamic and interactive user experience.

Introduction to Rich Content Components

Rich content components in uDocs allow authors to embed varied types of content, including images, videos, code snippets, links, and more, directly into the documentation. These elements play a crucial role in breaking up text, illustrating concepts, and providing hands-on examples.

Supported Components in uDocs

1. Text and Headings (Block)

Text blocks are the foundation of any document, conveying the core information. Headings structure the document, making it easier to navigate.

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

2. Links (Marks)

Hyperlinks enrich documents by providing references, further reading, or external resources. Styled to stand out and open in new tabs, links guide users without navigating away from the documentation. For example

3. Images (Types)

Images are pivotal for illustrating points, showing UI elements, or adding visual breaks in the text. The ImageBox component ensures images are presented effectively. For example

Test Image

Test Image

4. YouTube Videos (Types)

Videos can provide detailed tutorials, demonstrations, or introductions. The YouTube component embeds videos directly into the document, enriching the content with multimedia elements. For example

5. Document Links (Types)

Linking to other documents within the platform can create a web of information, making it easier for users to find related content. For example


This is introduction doc.

6. Buttons (Types)

Custom buttons can act as calls to action, guiding users to download, subscribe, or navigate to other sections. The ButtonComponent allows for styling and linking these CTAs effectively.

7. Code Snippets and Blocks (Marks and Types)

Code is essential for technical documentation. Inline code marks and block-level code snippets, highlighted with SyntaxHighlighter, clarify and illustrate coding examples.

console.log("Hello World!")


Integrating rich content components into uDocs documentation not only enhances the aesthetic appeal but also the practicality and comprehensiveness of the information presented. By utilizing images, videos, code snippets, and more, authors can create dynamic documents that engage, inform, and guide users more effectively. As you integrate these components into your documentation, consider the strategic placement of each to maximize their impact, making your documentation not just a source of information, but an interactive experience.