Home / Function/ AlertExample1() — ui Function Reference

AlertExample1() — ui Function Reference

Architecture documentation for the AlertExample1() function in alert-example.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  c3b84316_bf73_47b8_2ab5_6612336ea7d2["AlertExample1()"]
  93c1184c_d2a3_3a21_fedc_8c6b1ee779d1["alert-example.tsx"]
  c3b84316_bf73_47b8_2ab5_6612336ea7d2 -->|defined in| 93c1184c_d2a3_3a21_fedc_8c6b1ee779d1
  style c3b84316_bf73_47b8_2ab5_6612336ea7d2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/examples/alert-example.tsx lines 26–47

function AlertExample1() {
  return (
    <Example title="Basic">
      <div className="mx-auto flex w-full max-w-lg flex-col gap-4">
        <Alert>
          <AlertTitle>Success! Your changes have been saved.</AlertTitle>
        </Alert>
        <Alert>
          <AlertTitle>Success! Your changes have been saved.</AlertTitle>
          <AlertDescription>
            This is an alert with title and description.
          </AlertDescription>
        </Alert>
        <Alert>
          <AlertDescription>
            This one has a description only. No title. No icon.
          </AlertDescription>
        </Alert>
      </div>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

What does AlertExample1() do?
AlertExample1() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/alert-example.tsx.
Where is AlertExample1() defined?
AlertExample1() is defined in apps/v4/registry/bases/base/examples/alert-example.tsx at line 26.

Analyze Your Own Codebase

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

Try Supermodel Free