mirror of
https://github.com/vercel/components.build.git
synced 2026-09-14 20:06:39 +08:00
101ca62c2d
* Initial implementation * Bump deps * Update code-block.tsx * Update navbar.tsx * Move video to Geistdocs * Update layout.tsx * Margin fixes * Update code-block-tabs.tsx * Update docs-page.tsx * Update navbar.tsx * Add feed * Update docs-layout.tsx * Update mobile-menu.tsx * Fix adaptable layout * Update docs-page.tsx * Update docs page composability * Update global.css * Remove unused AI Elements * Update Feedback
41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
import {
|
|
CalloutContainer as CalloutContainerPrimitive,
|
|
CalloutDescription as CalloutDescriptionPrimitive,
|
|
Callout as CalloutPrimitive,
|
|
CalloutTitle as CalloutTitlePrimitive,
|
|
} from "fumadocs-ui/components/callout";
|
|
import type { ComponentProps } from "react";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
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} />
|
|
);
|