๐ŸŽฏ Nexus teaches Next.js from foundations to professional systemsโ€ขโšก App Router, React 19, and Tailwind v4 in one learning pathโ€ข๐Ÿงฉ Inspect real components, layouts, and reusable patternsโ€ข๐Ÿ› ๏ธ Build production discipline, not just polished demosโ€ข๐Ÿ“š Tracks, references, and design studies in one placeโ€ข๐ŸŽฏ Nexus teaches Next.js from foundations to professional systemsโ€ขโšก App Router, React 19, and Tailwind v4 in one learning pathโ€ข๐Ÿงฉ Inspect real components, layouts, and reusable patternsโ€ข๐Ÿ› ๏ธ Build production discipline, not just polished demosโ€ข๐Ÿ“š Tracks, references, and design studies in one placeโ€ข๐ŸŽฏ Nexus teaches Next.js from foundations to professional systemsโ€ขโšก App Router, React 19, and Tailwind v4 in one learning pathโ€ข๐Ÿงฉ Inspect real components, layouts, and reusable patternsโ€ข๐Ÿ› ๏ธ Build production discipline, not just polished demosโ€ข๐Ÿ“š Tracks, references, and design studies in one placeโ€ข๐ŸŽฏ Nexus teaches Next.js from foundations to professional systemsโ€ขโšก App Router, React 19, and Tailwind v4 in one learning pathโ€ข๐Ÿงฉ Inspect real components, layouts, and reusable patternsโ€ข๐Ÿ› ๏ธ Build production discipline, not just polished demosโ€ข๐Ÿ“š Tracks, references, and design studies in one placeโ€ข
UI Components

Alert

An inline feedback component for displaying informational, success, warning, or error messages

Quick Preview

Installation

# lucide-react is required
npm install lucide-react
// Copy the Alert component from
src/components/ui/Alert.tsx

Usage

import { Alert } from '@/components/ui/Alert'
export default function Example() {
return (
<Alert type="info" title="Heads up" dismissible>
You can update your settings at any time.
</Alert>
)
}

Examples

All Types

With Title

Dismissible Alert

Prompt Preview

Copy a prompt that recreates this UI

Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.

Copy-ready AI prompt

Starts from the current visual reference and project constraints.

Tweak only product-specific copy or data after the first generation pass.

Props

PropTypeDefaultDescription
type"info" | "success" | "warning" | "error""info"Type of alert โ€” determines color and icon
titlestring-Optional bold title above the message
children*React.ReactNode-Alert message content
dismissiblebooleanfalseShows a close button to dismiss the alert
classNamestring-Additional CSS classes

Features

  • โœ“4 semantic types: info, success, warning, error
  • โœ“Auto icon per type (lucide-react)
  • โœ“Optional title prop
  • โœ“Dismissible with X button (Client Component)
  • โœ“ARIA role="alert" for accessibility