Home / Function/ Alert() — ui Function Reference

Alert() — ui Function Reference

Architecture documentation for the Alert() function in alert.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  b7beebbe_0f63_351e_7a6c_ec36913d7863["Alert()"]
  76f1f89a_b058_fd97_8d3f_85a4e7abf798["alert.tsx"]
  b7beebbe_0f63_351e_7a6c_ec36913d7863 -->|defined in| 76f1f89a_b058_fd97_8d3f_85a4e7abf798
  style b7beebbe_0f63_351e_7a6c_ec36913d7863 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/ui/alert.tsx lines 18–31

function Alert({
  className,
  variant,
  ...props
}: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>) {
  return (
    <div
      data-slot="alert"
      role="alert"
      className={cn(alertVariants({ variant }), className)}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does Alert() do?
Alert() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/ui/alert.tsx.
Where is Alert() defined?
Alert() is defined in apps/v4/registry/bases/radix/ui/alert.tsx at line 18.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free