Files
zeekay 578f8dde80 feat: add SchemaTabs component for .zap/.capnp syntax comparison
- Add SchemaTabs component with syntax highlighting for both formats
- Update all docs pages to use SchemaTabs with both syntaxes
- Register SchemaTabs in MDX components for docs pages
- Add file ID annotations to capnp examples to show the difference
2026-02-04 16:07:30 -08:00

17 lines
444 B
TypeScript

import type { MDXComponents } from 'mdx/types';
import defaultMdxComponents from '@hanzo/docs-radix-ui/mdx';
import { Tab, Tabs } from '@hanzo/docs-radix-ui/components/tabs';
import { SchemaTabs } from './components/schema-tabs';
export function useMDXComponents(components: MDXComponents): MDXComponents {
return {
...defaultMdxComponents,
Tab,
Tabs,
SchemaTabs,
...components,
};
}
export { Tab, Tabs, SchemaTabs };