v1.9.0 : add keyboard components

This commit is contained in:
Wildan Nursahidan
2025-05-19 22:20:53 +07:00
parent d66f37085a
commit 209a80d5e8
11 changed files with 302 additions and 3 deletions

View File

@@ -0,0 +1,15 @@
import { Kbd as KbdComponent } from './KeyboardMdx';
import type { MDXComponents } from 'mdx/types';
// Export all components that should be available in MDX files
export const components: MDXComponents = {
// Register both Kbd and kbd to handle both cases
Kbd: KbdComponent as any, // We'll handle the type in the MDXProvider
// You can add other MDX components here as needed
// They will be available in your MDX files
// Example:
// h1: (props) => <h1 className="text-2xl font-bold" {...props} />,
};
export default components;