Creating a Snippet
Pre-requisite: You must create your snippet in a file with an underscore (_) prefix.
Create a file (e.g., _snippets/my-snippet.mdx) and write your reusable content inside it.
_snippets/my-snippet.mdx
Importing a Snippet
Import the snippet using this import syntax:Snippet Variables
Snippets can receive props and render dynamic content._snippets/custom-snippet.mdx