mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 04:19:26 +00:00
feat: docs example trial
This commit is contained in:
@@ -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]" />,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user