snippets/
folder.
Using a snippet
One of the core principles of software development is DRY (Don’t Repeat Yourself), which applies to documentation as well. If you find yourself repeating the same content in multiple places, consider creating a custom snippet to keep your content in sync. All snippets are placed in the rootsnippets/
folder. For more info on their creation and usage, refer to the reusable snippets page in the Mintlify documentation.
Using a component
You can use a component by importing it into your MDX file and then rendering it as a JSX tag. These look like HTML tags but start with an uppercase letter matching the name in your import statement:some/page.mdx
Built-in components
Mintlify provides built-in components for common documentation use cases. These components are available globally without needing to import anything. See items on the left navigation panel near that page, such as: Accordion, Cards, Columns, Code groups, etc.Custom components
TON documentation has a number of components built for various needs. See items on the left navigation panel within the “Components and snippets” group under the “Contribute” section, such as: Aside, Image, etc.Styling
Mintlify supports Tailwind CSS v3 style HTML elements and any components or snippets from thesnippets/
folder.
Read more:
- Styling with Tailwind CSS in the Mintlify documentation.
- Tailwind CSS v3 Documentation
- Unofficial Tailwind CSS v3 Cheatsheet