mirror of
https://github.com/vercel/ai-elements.git
synced 2026-09-14 19:48:26 +08:00
a66a5a3572
* 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
41 lines
1.2 KiB
TypeScript
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} />
|
|
);
|