Skip to content

shadcn.io is an independent project built on shadcn/ui

Free

Information with Highlighted Content Alert Dialog for Solid

A what's-new dialog that lists Dark Mode, performance, and integrations as three muted cards, from a sparkles button.

UI library: Ark UI

The trigger says What's New. The title is New in Version 2.0. Three cards name Dark Mode, Improved Performance, and New Integrations. Awesome does not navigate.

Use cards when each item needs a title and a line. A one-line list can stay plain. A longer changelog fits a Dialog. In Solid, Ark UI does not record that they read it.

Preview

Preview width

Installation

MCP · Pro
Make your AI a shadcn expert
Your agent installs components, builds pages and restyles your app from one prompt, in Claude Code, Cursor or VS Code.
Part of Pro

Anatomy

Alert Dialog anatomy: content, title, description, cancel, action

Usage

<AlertDialog>
    <AlertDialogTrigger asChild={props => <Button {...props()} variant="outline">
        <SparklesIcon aria-hidden="true" data-icon="inline-start" />
        What&apos;s New
      </Button>} />
    <AlertDialogContent>
      <AlertDialogHeader>
        <AlertDialogTitle>New in Version 2.0</AlertDialogTitle>
        <AlertDialogDescription>
          Check out the latest features and improvements:
        </AlertDialogDescription>
      </AlertDialogHeader>
      <div class="flex flex-col gap-2">
        {features.map(feature => <div class="rounded-lg border bg-muted/50 p-3">
            <div class="font-medium text-sm">{feature.title}</div>
            <p class="text-muted-foreground text-xs">
              {feature.description}
            </p>
          </div>)}
      </div>
      <AlertDialogFooter>
        <AlertDialogClose asChild={props => <AlertDialogAction {...props()}>Awesome!</AlertDialogAction>} />
      </AlertDialogFooter>
    </AlertDialogContent>
  </AlertDialog>

FAQ

Cards or a bulleted list?

Cards for three to five major features that deserve attention. A list for many small changes or bug fixes.

How much text goes in a card?

A two-to-four-word title and a short line. Link to the changelog for the rest.

How are the cards styled?

rounded-lg border bg-muted/50 p-3, with the title in font-medium text-sm and the line in text-muted-foreground text-xs. They're built from a static array at module scope.

How many cards should I show?

Three to five. Pick what matters most and link to the full list.

Why does the trigger have an icon?

The sparkles icon signals something new and positive. It's aria-hidden and marked data-icon="inline-start" so the button spaces it.

Does Awesome! close the dialog?

Yes.

API Reference

Alert Dialog

Sets asChild and props. The rest is on the Alert Dialog page.

Button

Sets props and variant="outline". The rest is on the Button page.