mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-21 00:18:41 +00:00
Squash merge of shadcn-ui/ui main branch into hanzo/ui, bringing in: - [email protected] through [email protected] releases - New apps/v4 directory structure - Registry system improvements and MCP server - Framework support (Vue, Svelte, React Native) - New templates (vite-app, monorepo-next, laravel) - Zod 4 compatibility (scoped override for zod@>4) - Test fixture corrections for alias resolution All 867 merge conflicts resolved preserving Hanzo customizations. 1020/1020 shadcn tests pass.
36 lines
764 B
TypeScript
36 lines
764 B
TypeScript
import { cn } from "@/lib/utils"
|
|
import {
|
|
Alert,
|
|
AlertDescription,
|
|
AlertTitle,
|
|
} from "@/registry/new-york-v4/ui/alert"
|
|
|
|
export function Callout({
|
|
title,
|
|
children,
|
|
icon,
|
|
className,
|
|
variant = "default",
|
|
...props
|
|
}: React.ComponentProps<typeof Alert> & {
|
|
icon?: React.ReactNode
|
|
variant?: "default" | "info" | "warning"
|
|
}) {
|
|
return (
|
|
<Alert
|
|
data-variant={variant}
|
|
className={cn(
|
|
"bg-surface text-surface-foreground border-surface mt-6 w-auto rounded-xl md:-mx-1 **:[code]:border",
|
|
className
|
|
)}
|
|
{...props}
|
|
>
|
|
{icon}
|
|
{title && <AlertTitle>{title}</AlertTitle>}
|
|
<AlertDescription className="text-card-foreground/80">
|
|
{children}
|
|
</AlertDescription>
|
|
</Alert>
|
|
)
|
|
}
|