feat: docs example trial

This commit is contained in:
Bereket Engida
2024-09-21 11:04:44 +03:00
parent 0fbc3dc8d1
commit 5ca615a3e4
23 changed files with 17972 additions and 19568 deletions

View File

@@ -11,25 +11,26 @@ import { TypeTable } from "fumadocs-ui/components/type-table";
import { Features } from "./components/blocks/features";
export function useMDXComponents(components: MDXComponents): MDXComponents {
return {
...defaultComponents,
...components,
Link: ({ className, ...props }: React.ComponentProps<typeof Link>) => (
<Link
className={cn("font-medium underline underline-offset-4", className)}
{...props}
/>
),
Step,
Steps,
Tab,
Tabs,
GenerateSecret,
Popup,
PopupTrigger,
PopupContent,
AnimatePresence,
TypeTable,
Features,
};
return {
...defaultComponents,
...components,
Link: ({ className, ...props }: React.ComponentProps<typeof Link>) => (
<Link
className={cn("font-medium underline underline-offset-4", className)}
{...props}
/>
),
Step,
Steps,
Tab,
Tabs,
GenerateSecret,
Popup,
PopupTrigger,
PopupContent,
AnimatePresence,
TypeTable,
Features,
iframe: (props) => <iframe {...props} className="w-full h-[500px]" />,
};
}