nessra uinessra ui

Displays a callout for user attention.

Loading...
import { Terminal } from "lucide-react"

import {

Installation

pnpmnpmyarnbun
pnpm dlx shadcn@latest add https://nessra-ui.vercel.app/r/alert.json

Usage

import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"
<Alert>
  <Terminal className="size-4" />
  <AlertTitle>Heads up!</AlertTitle>
  <AlertDescription>
    You can add components to your app using the CLI.
  </AlertDescription>
</Alert>

Examples

Destructive

Loading...
import { AlertCircle } from "lucide-react"

import {

API Reference

Alert

ComponentDescription
AlertThe root component
AlertTitleThe alert title
AlertDescriptionThe alert description

Alert Props

PropTypeDefaultDescription
variant"default" | "destructive""default"The alert style variant