Files
Hayden Bleasel a66a5a3572 Update documentation style (#235)
* Copy Geistdocs files

* Fix wiring

* More wiring

* Upgrade Fumadocs

* Reorganize custom components

* Restore ai-sdk nav

* Update files

* Update client-navbar.tsx

* Update elements-installer.tsx

* Disable Ask AI

* Update source.ts

* Update preview.tsx

* Build fixes

* Update elements-demo.tsx

* Update next-env.d.ts

* Update client-navbar.tsx

* Update mdx-components

* Update client-navbar.tsx

* Update client-navbar.tsx

* Update docs-page.tsx

* Update global.css

* Update code-block.tsx

* Update code-block.tsx

* AI SDK website patches

* Update banner.tsx

* Update toc.tsx

* Responsive fixes

* Update banner.tsx

* Update og image

* Fix banner on dark mode, add theme toggle

* Update route.tsx
2025-11-14 07:35:07 -08:00

41 lines
1.2 KiB
TypeScript

import { cn } from "@repo/shadcn-ui/lib/utils";
import {
CalloutContainer as CalloutContainerPrimitive,
CalloutDescription as CalloutDescriptionPrimitive,
Callout as CalloutPrimitive,
CalloutTitle as CalloutTitlePrimitive,
} from "fumadocs-ui/components/callout";
import type { ComponentProps } from "react";
type CalloutProps = ComponentProps<typeof CalloutPrimitive>;
export const Callout = ({ className, ...props }: CalloutProps) => (
<CalloutPrimitive
className={cn(
"rounded-sm bg-transparent p-3! shadow-none [&_div[role='none']]:hidden",
className
)}
{...props}
/>
);
type CalloutContainerProps = ComponentProps<typeof CalloutContainerPrimitive>;
export const CalloutContainer = (props: CalloutContainerProps) => (
<CalloutContainerPrimitive {...props} />
);
type CalloutTitleProps = ComponentProps<typeof CalloutTitlePrimitive>;
export const CalloutTitle = (props: CalloutTitleProps) => (
<CalloutTitlePrimitive {...props} />
);
type CalloutDescriptionProps = ComponentProps<
typeof CalloutDescriptionPrimitive
>;
export const CalloutDescription = (props: CalloutDescriptionProps) => (
<CalloutDescriptionPrimitive {...props} />
);