NAMCHE UI

Alert

An inline banner for status, warnings, and errors — card surface, hairline border.

Install

pnpm dlx shadcn@latest add @namche/alert

Usage

import { Alert, AlertTitle, AlertDescription } from '@/components/ui/alert';
import { InfoIcon } from 'lucide-react';

<Alert>
  <InfoIcon />
  <AlertTitle>Autoscaling is active</AlertTitle>
  <AlertDescription>
    Sirdar added 3 workers to handle the traffic spike in eu-west.
  </AlertDescription>
</Alert>

variant is default | destructive. An icon as the first child grids into its own column automatically — no extra markup needed. AlertAction positions a control (a button or link) in the top-right corner for dismiss or retry actions.

On this page