MCPcopy
hub / github.com/shadcn-ui/taxonomy / Callout

Function Callout

components/callout.tsx:9–27  ·  view source on GitHub ↗
({
  children,
  icon,
  type = "default",
  ...props
}: CalloutProps)

Source from the content-addressed store, hash-verified

7}
8
9export function Callout({
10 children,
11 icon,
12 type = "default",
13 ...props
14}: CalloutProps) {
15 return (
16 <div
17 className={cn("my-6 flex items-start rounded-md border border-l-4 p-4", {
18 "border-red-900 bg-red-50": type === "danger",
19 "border-yellow-900 bg-yellow-50": type === "warning",
20 })}
21 {...props}
22 >
23 {icon && <span className="mr-4 text-2xl">{icon}</span>}
24 <div>{children}</div>
25 </div>
26 )
27}

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected