Logo
KNEXT.JS
  • Blog
  • Docs
KNEXT.JS
  • Home
  • Docs
    • Components
    • Getting Started
    • Guides
    • Patterns
  • Blog
    • Patterns
    • Test
  1. Home
  2. docs
  3. guides
  4. mdx features

KNEXT.js

Your next project, supercharged with modern web development tools and best practices.

Resources

  • Documentation
  • Components
  • Templates

Company

  • About
  • Blog
  • Contact

Legal

  • Privacy Policy
  • Terms of Service

© 2025 KNEXT.js. All rights reserved.

GitHubBluesky
mdx
documentation
guide
3/21/2024•4 min read

MDX Features in KNEXT.js

This guide demonstrates the various MDX features available in KNEXT.js. And provides examples of how to use them.

Typography

KNEXT.js provides a rich set of typography components:

Headings

H1 Heading

H2 Heading

H3 Heading

H4 Heading

H5 Heading
H6 Heading

Text Styles

Regular paragraph text with bold and italic formatting.

Lead text is great for introductory paragraphs.

Large text for emphasis

Small text for less important information

Muted text for secondary information

Code Blocks

Inline Code

Use inline code for short code snippets.

Syntax Highlighted Code

Interactive Components

Buttons

Cards

Feature Card

Cards are great for grouping related content together.

Tables

FeatureDescriptionStatus
TypographyRich text formattingAvailable
ComponentsInteractive UI componentsAvailable
FeatureStatus
React 19✅
Server Components✅

Strikethrough

This was mistaken text

Task Lists

  • → Task 1
  • → Task 2
  • → Task 3

Lists

  • → Unordered lists
  • → With multiple items
    • → And nested items
    • → For hierarchy
  1. → Ordered lists
  2. → For sequential items
  3. → With numbers

Links

Internal links External links

Images

Images are automatically optimized using Next.js Image component:

Example image

Custom Components

You can use any custom components defined in your MDX components:

Blockquotes

Blockquotes are perfect for highlighting important information or quotes from other sources.

Nested Components

Animations with GSAP

Basic Animation
I'm sliding in from the bottom and fading in!
Advanced GSAP Example
Wow, such groovy!

Note: The animations above use GSAP's ScrollTrigger for scroll-based animations and timeline animations for continuous effects. Check out the source code to see how they're implemented.

Implementation Details

To add these animations to your own MDX content:

  1. → Use the AnimatedContent component with the variant prop set to scroll or tagline.
  2. → OR Import and use the useMDXAnimations hook in your client components

Conclusion

This guide demonstrates the core MDX features available in KNEXT.js. For more details, check out the individual component documentation.

Here are some helpful links to learn more:

  • → MDX Documentation - Official MDX documentation and guides
  • → GSAP ScrollTrigger - Learn about scroll-based animations
  • → KNEXT.js Components - Browse our component library
  • → Animation Guide - Detailed guide on animations in KNEXT.js
  • → Styling Guide - Learn about our design system and styling

You can also join our Discord community for help and discussions.

Nested Components Example
interface User {
id: string;
name: string;
email: string;
}

function getUser(id: string): User {
return {
id,
name: 'John Doe',
email: '[email protected]'
};
}
const example = "nested components";