Home / Function/ AlertExample4() — ui Function Reference

AlertExample4() — ui Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

apps/v4/registry/bases/base/examples/alert-example.tsx lines 190–227

function AlertExample4() {
  return (
    <Example title="With Actions">
      <div className="mx-auto flex w-full max-w-lg flex-col gap-4">
        <Alert>
          <IconPlaceholder
            lucide="CircleAlertIcon"
            tabler="IconExclamationCircle"
            hugeicons="AlertCircleIcon"
            phosphor="WarningCircleIcon"
            remixicon="RiErrorWarningLine"
          />
          <AlertTitle>The selected emails have been marked as spam.</AlertTitle>
          <AlertAction>
            <Button size="xs">Undo</Button>
          </AlertAction>
        </Alert>
        <Alert>
          <IconPlaceholder
            lucide="CircleAlertIcon"
            tabler="IconExclamationCircle"
            hugeicons="AlertCircleIcon"
            phosphor="WarningCircleIcon"
            remixicon="RiErrorWarningLine"
          />
          <AlertTitle>The selected emails have been marked as spam.</AlertTitle>
          <AlertDescription>
            This is a very long alert title that demonstrates how the component
            handles extended text content.
          </AlertDescription>
          <AlertAction>
            <Badge variant="secondary">Badge</Badge>
          </AlertAction>
        </Alert>
      </div>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free