MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / Alert

Function Alert

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected