BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn-solidjs/alert-dialog

alert-dialog

shadcn-solidjs/alert-dialog
FreeComponent

shadcn-solidjs publishes no description for this item.

Live preview

live · rendered by the registry
Rendered by shadcn-solidjs on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://shadcn-solidjs.com/r/alert-dialog.json

Source

src/registry/ui/alert-dialog.tsxshadcn-solidjs.com/r/alert-dialog.json · first 6 KB
1import * as AlertDialogPrimitive from "@kobalte/core/alert-dialog";
2import type { PolymorphicProps } from "@kobalte/core/polymorphic";
3
4import { cn } from "~/lib/utils.ts";
5import type { VariantProps } from "class-variance-authority";
6import type { Component, ComponentProps, JSX, ValidComponent } from "solid-js";
7
8import { splitProps } from "solid-js";
9import { buttonVariants } from "./button.tsx";
10
11const AlertDialog = AlertDialogPrimitive.Root;
12const AlertDialogPortal = AlertDialogPrimitive.Portal;
13
14type AlertDialogTriggerProps<T extends ValidComponent = "button"> =
15 & AlertDialogPrimitive.AlertDialogTriggerProps<T>
16 & { class?: string | undefined };
17
18const AlertDialogTrigger = <T extends ValidComponent = "button">(
19 props: PolymorphicProps<T, AlertDialogTriggerProps<T>>,
20) => {
21 return (
22 <AlertDialogPrimitive.Trigger
23 data-slot="alert-dialog-trigger"
24 {...(props as AlertDialogTriggerProps)}
25 />
26 );
27};
28
29type AlertDialogOverlayProps<T extends ValidComponent = "div"> =
30 & AlertDialogPrimitive.AlertDialogOverlayProps<T>
31 & { class?: string | undefined };
32
33const AlertDialogOverlay = <T extends ValidComponent = "div">(
34 props: PolymorphicProps<T, AlertDialogOverlayProps<T>>,
35) => {
36 const [local, others] = splitProps(props as AlertDialogOverlayProps, [
37 "class",
38 ]);
39 return (
40 <AlertDialogPrimitive.Overlay
41 data-slot="alert-dialog-overlay"
42 class={cn(
43 "data-expanded:animate-in data-closed:animate-out data-closed:fade-out-0 data-expanded:fade-in-0 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50",
44 local.class,
45 )}
46 {...others}
47 />
48 );
49};
50
51type AlertDialogContentProps<T extends ValidComponent = "div"> =
52 & AlertDialogPrimitive.AlertDialogContentProps<T>
53 & {
54 class?: string | undefined;
55 children?: JSX.Element;
56 size?: "default" | "sm";
57 };
58
59const AlertDialogContent = <T extends ValidComponent = "div">(
60 props: PolymorphicProps<T, AlertDialogContentProps<T>>,
61) => {
62 const [local, others] = splitProps(props as AlertDialogContentProps, [
63 "class",
64 "children",
65 "size",
66 ]);
67 return (
68 <AlertDialogPortal>
69 <AlertDialogOverlay />
70 <AlertDialogPrimitive.Content
71 data-slot="alert-dialog-content"
72 data-size={local.size ?? "default"}
73 class={cn(
74// … truncated

What it pulls in

npm packages

  • @kobalte/core
  • class-variance-authority

Other registry items

  • button

Facts

Registry
shadcn-solidjs
Type
registry:ui
Access
Free
Files written
0
Licence
MIT
In the index
at or before 2026-08-16
Last confirmed
today

Go to the source

Docs on shadcn-solidjs shadcn-solidjs.com ptzburn/shadcn-solidjs on GitHub Raw registry item This item as JSON

More from shadcn-solidjs

All 85 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordionshadcn-solidjsComponentsFree1 dep
alertalertshadcn-solidjsComponentsFree2 deps
aspect-ratioaspect-ratioshadcn-solidjsComponentsFreeno deps
attachmentattachmentshadcn-solidjsComponentsFree2 deps
avataravatarshadcn-solidjsComponentsFree1 dep
badgebadgeshadcn-solidjsComponentsFree2 deps
breadcrumbbreadcrumbshadcn-solidjsComponentsFree1 dep
bubblebubbleshadcn-solidjsComponentsFree2 deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex