All MDX components
Preview of all MDX components that you can use in your MDX document.
All components are defined in mdx-components.tsx
file. Below provided a list of all components that you can use in your MDX document.
But also, you can add your own components to the mdx-components.tsx
file.
Accordion
Docs
Syntax:
Preview:
Callout
Docs
Syntax:
Preview:
MDX syntax
If you're not familiar with markdown syntax, you can check the HTML equivalent
here
h1
Syntax:
h2
h3
h4
h5
Preview:
h6
Links
Syntax:
Preview:
Paragraphs
Syntax:
Preview:
This is a paragraph. It contains some text to show you how a paragraph looks like in MDX.
Lists
Unordered List
Syntax:
Preview:
- Item 1
- Item 2
- Subitem 2.1
- Subitem 2.2
- Item 3
Ordered List
Syntax:
Preview:
- First item
- Second item
- Third item
Blockquotes
Syntax:
> This is a blockquote. It can span multiple lines and include other markdown elements.
Preview:
This is a blockquote. It can span multiple lines and include other markdown elements.
Images
Syntax:
Preview:
Horizontal Rule
Syntax:
Preview:
Tables
Syntax:
Preview:
Syntax | Description |
---|---|
Header | Title |
Paragraph | Text |
Inline code
Syntax:
Preview:
const a = 2;
Codeblock
Syntax:
Preview:
Tabs
Syntax:
Preview:
"Be" here represents the choice to embrace documentation, to arm oneself with the power of knowledge, and to confront the sea of coding challenges with the shield of clarity.
External Link
Syntax:
Preview:
Max Rusakovič twitter