MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / Alert

Function Alert

packages/web/src/components/ui/alert.tsx:18–31  ·  view source on GitHub ↗
({
  className,
  variant,
  ...props
}: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>)

Source from the content-addressed store, hash-verified

16})
17
18function Alert({
19 className,
20 variant,
21 ...props
22}: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>) {
23 return (
24 <div
25 data-slot="alert"
26 role="alert"
27 className={cn(alertVariants({ variant }), className)}
28 {...props}
29 />
30 )
31}
32
33function AlertTitle({ className, ...props }: React.ComponentProps<"div">) {
34 return (

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected