@itu/mdx
MDX component provider and prose presets for the documentation site.
What It Provides
- Base HTML components: styled
h1–h6,p,a,ul,ol,table,code,pre,blockquote,hrwith brand colors and consistent spacing - Docs component registration: merges
@itu/docs-uicomponents so they're available in MDX without imports - Doc layout: reusable layout wrapper for documentation pages
Usage
The docs app registers MDX components via the provider in mdx-components.tsx:
tsx
import { ituMdxComponents, docsComponents } from '@itu/mdx' export function useMDXComponents(components) { return { ...ituMdxComponents, ...docsComponents, ...components } }
5 lines of tsx code
This makes all markdown elements styled and all docs-ui components available globally.