1.0.2 • Published 10 months ago
@mdxui/types v1.0.2
@mdxui/types
Core TypeScript types extending schema-dts to support $type
alongside @type
for YAML-LD frontmatter in MDX files.
Installation
pnpm add @mdxui/types
Usage
import { BlogPost, DocumentationPage } from '@mdxui/types'
// In your MDX frontmatter
---
$type: BlogPost
title: My Blog Post
date: 2024-03-20
---
// Type checking in your components
interface Props {
frontmatter: BlogPost
}
Features
- Extended schema.org types with
$type
support - Full TypeScript definitions for all MDXUI components
- Type safety for YAML-LD frontmatter
- Integration with schema-dts
Related Packages
@mdxui/shared
- Shared utilities and components@mdxui/blog
- Blog-specific implementations@mdxui/docs
- Documentation specific implementations
License
MIT © 2024 Drivly