saturation/uisaturation/ui
DocsComponentsBlocksPagesEmails
GitHub

Sections

IntroductionComponentsInstallationMCPThemingDesign

Components

Components

General

AvatarBadgeButtonKbdProgressSeparatorSkeletonSpin ResolveSpinnerSync ButtonTypography

Forms & Inputs

Address LookupCalendar PickerCheckboxComboboxDate PickerEmoji PickerFavicon SearchFieldInputInput GroupInput OTPRadio GroupSelectSliderSwitchTextareaToggleToggle Group

Data Display

AccordionAlertCardChartComparison SliderCredit CardData TableEmptyItemSaturation Credit CardTableTree

Navigation

BreadcrumbCommandMenubarNavigation MenuPaginationTabs

Overlays

CollapsibleContext MenuDialogDropdown MenuSheet

Layout

Button GroupFont ProviderWizard Split Layout

Feedback

Sonner

Animation & Effects

Animated GroupAnimated ListAnimated NumberBeamBlur FadeBorder TrailGlow EffectLiquid MetalLoading StateParallaxPixelProgressive BlurRippleSpotlightText EffectText Shimmer

Productivity

Agent ChatAI Chat InputCoding AgentFiltersFull CalendarKanbanNovel Editor
Docs/Components/Alert

Alert

Displays a callout for important messages.

Loading...

Installation

pnpm dlx shadcn@latest add @saturation-ui/alert

Tailwind v4 — Source Scanning

The public shadcn registry installs component source into your project. If Tailwind v4 isn't scanning your components directory, add this to your CSS entry file:

@source "../components";

This ensures all utility classes in CVA variants and data attribute selectors are included in your build.

Usage

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

Examples

Destructive

Loading...
Destructive alert variant.

With List

Loading...
Alert with bulleted list.

With Avatar

Loading...
Alert with avatar.

API Reference

PropTypeDefaultDescription
variant"default" | "destructive""default"The visual variant.
PreviousAI Chat InputNextAnimated Group

On This Page

  • Installation
  • Usage
  • Examples
  • Destructive
  • With List
  • With Avatar
  • API Reference
Weather Warning
Exterior shoot scheduled for 2PM may be affected by incoming rain. Consider moving to Stage B or adjusting call time.
Session Expired
Your session has expired. Please log in again to continue.
Payment Failed

Your payment could not be processed. Please:

  • Check your card details are correct
  • Ensure sufficient funds are available
  • Verify your billing address
SC
New Notification
shadcn commented on your recent pull request. Review the changes and respond when you have a moment.