Content Blocks

Explore the use of dynamic content blocks, such as component variations, design token blocks, and embeds, to create interactive and informative documentation.
View as Markdown

Overview

Blocks provide a way to add different kinds of content to your documentation site, such as text and media, markdown-formatted text, galleries, and more.

Knapsack offers a range of content blocks to choose from, including System Blocks for embedding design system assets into your documentation and Embed Blocks for including third-party assets and resources.

Blocks give you a lot of flexibility and control over your documentation content, enabling you to add different types of content and organize your pages to meet your needs.


Types of content blocks

Knapsack provides a range of content blocks that can be used for embedding content and third-party resources directly within your system documentation:

Basic Blocks

This section provides a range of fundamental content blocks that enhance the structure and readability of your documentation. These blocks allow you to share important information, separate content, create links, organize data, and add rich textual content.


Design Blocks

This section provides detailed guidance on how to incorporate various design elements into your documentation. These blocks allow you to visually showcase your design components and provide valuable guidelines for their usage, ensuring consistency and clarity across your design system.


Embed Blocks

The “Embed Blocks” section provides a variety of blocks that allow you to embed external content directly into your documentation. These blocks enhance your documentation by integrating interactive and visual elements from various third-party platforms.

iFrame Block

The iFrame Block allows you to embed any web page or web content using an iframe. This block is versatile and can be used to display content from any website that supports embedding.

Abstract Block

The Abstract Block enables you to embed designs and assets from Abstract. This block is perfect for showcasing design files and collaborative workspaces directly within your documentation.

Adobe XD Block

The Adobe XD Block lets you embed Adobe XD designs and prototypes. This block is ideal for showcasing interactive design work and prototypes created in Adobe XD, allowing for seamless collaboration and presentation within your documentation.

Airtable Block

The Airtable Block allows you to embed Airtable bases and views. This block is useful for integrating and displaying structured data and project management tools from Airtable.

Figma Block

The Figma Block lets you embed Figma files, prototypes, and components. This block is ideal for displaying design work and interactive prototypes, making it easy to collaborate on design projects.

Framer Block

The Framer Block enables you to embed Framer content, providing a way to showcase interactive prototypes and design assets.

Lucidchart Block

The Lucidchart Block allows you to embed Lucidchart diagrams and flowcharts. This block is useful for displaying visual representations of processes, workflows, and organizational structures.

Vimeo Block

The Vimeo Block lets you embed Vimeo videos. This block is perfect for adding visual and multimedia content to your documentation, enhancing engagement and information delivery.

YouTube Block

The YouTube Block enables you to embed YouTube videos. This block allows you to incorporate instructional videos, presentations, and other visual content from YouTube.

Whimsical Block

The Whimsical Block allows you to embed Whimsical wireframes, mind maps, and diagrams. This block is useful for displaying visual planning and brainstorming tools directly within your documentation.


Media Blocks

This section offers a variety of blocks that allow you to incorporate different types of media into your documentation. These blocks enhance your documentation by adding interactive elements, visual content, and code examples, making it more engaging and informative for users.


Pattern Blocks

This section provides tools to visually represent and organize the patterns in your design system. These blocks help you display comprehensive views of your design patterns, making it easier for users to understand and navigate through your system’s components.


Other Blocks

This section includes additional blocks that provide flexibility and customization options for your documentation.