BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/crenspire/glass-ui/alert

Alert

crenspire-glass-ui/alert
FreeComponent

Displays a callout for user attention with optional glassy variant.

Live preview

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

Install it

npx shadcn@latest add https://glass-ui.crenspire.com/r/alert.json

Source

components/ui/glass/alert.tsxglass-ui.crenspire.com/r/alert.json
1"use client"
2
3import * as React from "react"
4import { Alert as BaseAlert, AlertDescription, AlertTitle } from "@/components/ui/alert"
5import { cn } from "@/lib/utils"
6import { hoverEffects, type HoverEffect } from "@/lib/hover-effects"
7
8export interface AlertProps extends React.ComponentProps<typeof BaseAlert> {
9 glow?: boolean
10 hover?: HoverEffect
11}
12
13/**
14 * Glass UI Alert - Enhanced alert with glassy effects and hover animations
15 *
16 * @example
17 * ```tsx
18 * <Alert variant="glass" hover="glow">
19 * <AlertTitle>Heads up!</AlertTitle>
20 * <AlertDescription>You have new notifications</AlertDescription>
21 * </Alert>
22 * ```
23 */
24export const Alert = React.forwardRef<HTMLDivElement, AlertProps>(
25 ({ className, variant = "glass", glow = false, hover = "none", ...props }, ref) => {
26 return (
27 <BaseAlert
28 ref={ref}
29 variant={variant}
30 className={cn(
31 "relative overflow-hidden",
32 glow && "shadow-lg shadow-purple-500/20",
33 "transition-all duration-200",
34 hoverEffects({ hover }),
35 className
36 )}
37 {...props}
38 />
39 )
40 }
41)
42Alert.displayName = "Alert"
43
44export {
45 AlertDescription,
46 AlertTitle,
47}
48

What it pulls in

Other registry items

  • alert

Files it writes

  • lib/utils.ts
  • lib/glass-utils.ts
  • lib/hover-effects.ts
  • app/globals.css
  • components/ui/glass/alert.tsx

Facts

Registry
crenspire/glass-ui
Type
registry:component
Access
Free
Files written
5
Licence
the repository states none
First indexed
2026-08-03
Last confirmed
today

Go to the source

Docs on crenspire/glass-ui glass-ui.crenspire.com crenspire/glass-ui on GitHub Raw registry item This item as JSON

More from crenspire/glass-ui

All 49 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Accordionaccordioncrenspire/glass-uiComponentsFree2 deps · 5 files
Alert Dialogalert-dialogcrenspire/glass-uiComponentsFree1 dep · 5 files
Avataravatarcrenspire/glass-uiComponentsFree1 dep · 5 files
Badgebadgecrenspire/glass-uiComponentsFreeno deps · 5 files
Breadcrumbbreadcrumbcrenspire/glass-uiComponentsFree2 deps · 5 files
Buttonbuttoncrenspire/glass-uiComponentsFree1 dep · 5 files
Button Groupbutton-groupcrenspire/glass-uiComponentsFreeno deps · 5 files
Calendarcalendarcrenspire/glass-uiComponentsFree3 deps · 5 files
BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex