Files
Hayden Bleasel 101ca62c2d Update docs styles (#22)
* 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
2025-11-14 11:56:29 -08:00

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} />
);